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

What are the valid scopes of a variable in vbscript?

604


i am having some basic knowledge in c and VB 6.0. i qtp i want to know how to write the codings. by recording it is generating lot of codings. for example i want to test the text box. senerio is text box should not accept alphabets if it accept alphabets we should return fail status if it get number we should return pass status. how to write coding in vb script please help me

1795


Mention what is the main difference between function and sub-procedure?

543


What are the 2 ways in which a variable can be declared in the vbscript language?

562


When to use function procedures and what are its characteristics?

547






Which object provide information about a single runtime error in a vbscript?

596


Which in-built function is used to format the number in the vbscript language?

573


What is dictionary object in vbscript? Explain?

621


In html file what is an ideal position to include vbscript?

805


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

1567


Explain sga memory structures?

575


Explain the asc function?

504


Which loop is used in case of arrays in the vbscript language?

514


what is the differance between BYVAL,BYREF?

1764


Mention the environments where vbscript could be run?

651