Answer Posted / mudaseer
dim varr1(1,1),varr2(1,1),varr3(1,1)
for i=0 to 1
for j=0 to 1
varr1(i,j)=cint(inputbox("enter the number"))
next
next
for i=0 to 1 step 1
for j=0 to 1 step 1
varr2(i,j)=cint(inputbox("enter the number"))
next
next
for i=0 to 1 step 1
for j=0 to 1 step 1
varr3(i,j)=varr1(i,j)+varr2(i,j)
next
next
for i=0 to 1 step 1
for j=0 to 1 step 1
vstr1=vstr1 & varr1(i,j) & " "
vstr2=vstr2 & varr2(i,j) & " "
vstr3=vstr3 & varr3(i,j) & " "
next
vstr1=vstr1 & vbnewline
vstr2=vstr2 & vbnewline
vstr3=vstr3 & vbnewline
next
msgbox vstr1
msgbox vstr2
msgbox vstr3
| Is This Answer Correct ? | 23 Yes | 7 No |
Post New Answer View All Answers
Explain about filter expression?
How will you get the smallest subscript of an array in vbscript?
what is resorceallocation
How to get the length of the string by making use of the string function?
What is the use of the date function in the vbscript language?
how to set one column as primary key in QTP and fetch values accordingly
please can you help me to get a code of flames using a visual basic 6
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
Mention what is the main difference between function and sub-procedure?
What is loose binding? Why is it not a good practice to use it?
How will you get the octal value of the given number in vbscript?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
When are redim statement and preserve keyword used in the vbscript language?
What is the use of the formatdatetime function in the vbscript language?
Mention the environments where vbscript could be run?