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 |
Difference between Do while loop and while wend loop
Diff between web table ,datatable and data base (QTP)
how do you make the variable declaration mandatory?what is the use of "option explicit"?
How will you format a number in percetage format in vbscript?
generic function for webedit box for web application
write a vb script to calculate factorial of a number?
Could Anybody tell me the Script for REVERSE an Interger int reverse(int num) Ex:246 to 642.. Thanks in Advance.
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
Which is the default Data types in VBScript?
What is the purpose of regexp object in vbscript?
can anyone tell me the procedure of interview held in applabs
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?