write a vb script to display 3*3 matrix



write a vb script to display 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



vstr=vstr & vbnewline
next
msgbox vstr

Is This Answer Correct ?    10 Yes 3 No

Post New Answer

More VB Script Interview Questions

* ** *** Please write a code to get output like above diagram? ple explain as it how the code works?

2 Answers  


How are values assigned to the variables in the vbscript language?

0 Answers  


How to create a function in vbscript?

0 Answers  


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

0 Answers  


How to select a value from a list box by using Selenium web-driver?

2 Answers   HCL,






in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script

2 Answers  


how to increasing the numbers in a given text box please write a vb script

0 Answers  


How do you create a recordset object in VBScript?

3 Answers  


Which keyword is used to declare a variable in the vbscript language?

0 Answers  


How to access array data?

0 Answers  


What is the event handling in vbscript?

0 Answers  


accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org

2 Answers  


Categories