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

Mention the rules for using option explicit statement?

0 Answers  


how do you make the variable declaration mandatory?what is the use of "option explicit"?

2 Answers  


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

0 Answers   Estuate,


Is VB Script Case sensitive or Case insensitive?

0 Answers  


how to add action through AOM in QTP

0 Answers  


write a vbscript for finding the sum of the numbers from 1- 50

3 Answers  


WHAT IS ENVIRONMENT VARIABLES?and where it is used in real time scenario?

2 Answers  


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

0 Answers   IBM,


what do you mean .ota mobile format

0 Answers  


Which function is used to perform string comparison?

0 Answers  


In QTP how to insert a data base check point for web based application and simultaneous link to code in expert veiw. hw to retrieve a data(single coulumn from server) that matches with inserted value manually or exported from excel sheet.

2 Answers  


How to generate 3 digit random number?

3 Answers   IBM, Virtusa,


Categories