write a vb script to display 3*3 matrix

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you create a file object to work with the files in the vbscript language?

593


How regexp.execute method works?

686


Explain about the extension .hta?

725


I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?

1652


What is the use of the date function in the vbscript language?

668






Explain the operator precedence in vb script?

739


Why to use option explicit in vb script?

701


Which operator is used to perform the comparison among 2 operands in the vbscript language?

613


what types of bugs will we find out in banking projects for automation testing?

1863


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

1910


Mention what are the rules to name variable in vbscript?

627


What is Procedure or Subroutine in VB Script?

703


Mention what if you do not specify anything when you call a procedure?

655


Explain the extension .hta?

629


Why is the use of exit do or exit for statements within loops discouraged?

650