write a vb script to generate 3*3 matrix

Answers were Sorted based on User's Feedback



write a vb script to generate 3*3 matrix..

Answer / mudaseer

dim varr(2,2)
for i=0 to 2 step 1
for j=0 to 2 step 1
varr(i,j)=inputbox("enter the value")
next
next
for i=0 to 2 step 1
for j=0 to 2 step 1
vstr=vstr & varr(i,j) & " "
next
msgbox vstr
vstr=vstr & vbnewline
next
msgbox vstr

by mudaseer20@gmail.com

Is This Answer Correct ?    3 Yes 0 No

write a vb script to generate 3*3 matrix..

Answer / smita

dim varr(2,3)
for i=0 to ubound(a,1)
for j=0 to ubound(a,2)
varr(i,j)=inputbox("enter the value")
next
next
for i=0 to 2 step 1
for j=0 to 3 step 1
vstr=vstr & varr(i,j) & " "
next
vstr=vstr & vbnewline
next
msgbox vstr

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More VB Script Interview Questions

generic function for webedit box for web application

1 Answers  


What are the naming conventions while declaring a variable in the vbscript language?

0 Answers  


Explain the .wsf files?

0 Answers  


Which date function is used in the vbscript language to find the difference between the 2 dates?

0 Answers  


What is the purpose of regexp object in vbscript?

0 Answers  






Why is it recommended to close the database connection every time after the work is completed?

0 Answers  


write a vb script to display the reverse of vbs

2 Answers  


What is dictionary object in vbscript? Explain?

0 Answers  


How can you fetch the value of a cookie?

0 Answers  


What are the advantages of vbscript?

0 Answers  


How to Import data from a file (file is on the desktop) to the data table

0 Answers   IBM,


input values to accept 2 numbers & print the product, difference and sum using switch case

1 Answers   CSC,


Categories