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

Write a program to create a Dynamic array of size 5 elements and display all the elements.

1 Answers  


I want to count the total no of links present in yahoo home page. The script like Set fileSysObject=createobject("Scripting.FileSystemObject") Set linksFileName=fileSysObject.opentextfile("D:\samplelinkfile.txt",2,true) Set linkDescObj=description.Create linkDescObj("micclass").value="Link" Set noOfLinks=browser("yahoo").Page("Yahoo!India").ChildObjects(linkDescObj) For i=0 to noOfLinks.count-1 linkName=noOfLinks(i).getROProperty("name") linksFileName.writeline(linkName) Next linksFileName.close Set fileSysObject=nothing But while running the script it is fail (the object not present in the object repository).How to overcome please tell me the detail steps...for QTP9.30

1 Answers  


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

0 Answers  


find the length of the string without using length function?

4 Answers   CSS Corp,


input values to accept 2 numbers & print the product, difference and sum using switch case

1 Answers   CSC,






compare the string without using stringcomp function?

1 Answers   CSS Corp,


Difference between dim,public and private variables in vb script?

0 Answers  


What are string functions in vbscript?

0 Answers  


Explain the filter expression?

0 Answers  


What is the differene between QTP 8.2 and QTP 9.0 and QTP 9.1,Pls give me answer ASAP.

3 Answers   Accenture,


What are the different types of loops available in the vbscript language?

0 Answers  


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

0 Answers  


Categories