Write a program to display the numbers in the below format using for loops?
1 2 3 4
5 6 7 8
9 10 11 12
and
Write a program to display the numbers in the below format using for loops.
1
2 3
4 5 6
7 8 9 10
Answers were Sorted based on User's Feedback
Answer / vamsi
Write a program to display the numbers in the below format using for loops.
1
2 3
4 5 6
7 8 9 10
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / prathyusha
num=0
For i=1 To 4
For j=1 To i
num=num+1
val=val&num
Next
res=res&vbCrLf&val
val=""
Next
MsgBox res
o/p
******
1
23
456
78910
************************
num=0
For i=1 To 3
For j=1 To 4
num=num+1
val=val&num
Next
res=res&vbCrLf&val
val=""
Next
MsgBox res
o/p
*******
1234
5678
9101112
| Is This Answer Correct ? | 0 Yes | 0 No |
I have a webtable and many objects are embedded in side.(like buttons,checkboxes etc). How to know how many such objects are there? what is the class of that objects?
what is fire event method in qtp?
Is vbscript language a case-sensitive language and what does it mean?
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
about vb scripting programs this type of all question& answers
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5 how to find using vbscripting
Can anyone send me a vb script function for verifying the functionality of active links on a web page
Diff between web table ,datatable and data base (QTP)
Explain few date functions in vbscript?
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
How to remove the spaces in a string Ex: "this is apple"
Explain about arrays in vb script?