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 |
Explain about the functionality of vb script?
Plz give the vb script for the following scenerio. In travel booking we have to select from delhi to mumbai from the combobox The prices will be display in another combo box .But i have to select the lowest price for it and submit it
Can anybody code this problem for me in VB script - Create an array of 4 elements, increase its size to 7 elements and then find out which of the elements are prime (use functions)
did any one attended interview in applabs if you had gone through plz tell me the procedure
Explain the scope of the variables using dim, public, and private keywords respectively.
When inserting strings into a SQL table in ASP what is the risk and how can you prevent it?
Write a Fucntion to close all Opened browser expect desired one?
write a vb script to generate 3*3 matrix
What is difference between Active screen and movie screen recorder in QTP 9.2?
this q asked in applabs, q is: QTP should open google.com page and enter "qtp" in one edit(search) box and click search and should open google.com again and enter "job" in edit(search) box and click on search. I tried this but getting error "Edit(search) box matches more than one object", could anyone this question plz..
how to find greatest of n numbers!
My Salary is 65000. How Much TDS I have to pay