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

Explain about the asc function?

0 Answers  


How can you fetch the value of a cookie?

0 Answers  


How to use Text file (Notepad) as ur data source in QTP? Can u please provide some function code for it?

1 Answers  


Which data type/types are supported by vbscript language and what are their specialties?

0 Answers  


Hi Friends, I am facing some issues with If,else condition,i.e. i am working on some web page for ex:gmail page.now if i want to check if username is incorrect or already exist,i want to display error message in my test report,for this i am using a simple code first,i.e. If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "Shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If But still i am getting a syntax error If Browser("Gmail: Email from Google").Page("Gmail: Email from Google").WebEdit("Email").Set "shekhar.g"= true Then Msgbox ("Username Does not Exist!") Else msgbox ("Welcome !") End If I don't feel any thing wrong in this syntax but i don't understand why it shows such error,i am confused what went wrong,please help me out & do the favor,thanks a lot....

1 Answers  






write a script to count no drives in file systems in qtp?

1 Answers   Mind Q Systems,


write a vbscript for traffic signal

1 Answers  


What is the equivalent of VBScript?s On Error In Jscript ?

1 Answers   Microsoft,


Write program for identifyig duplicates in flight Departing from and Arriving in mercury tours(web application).

0 Answers  


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

0 Answers  


write a vb script to rename a folder from tree4 to tree7

3 Answers  


How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

0 Answers   College School Exams Tests,


Categories