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 |
How many types of operators are available in the vbscript language?
Explain sga memory structures?
Write a program to print all lines that contains a word either “testing” or “qtp”
We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below
Difference between Do while loop and while wend loop
Write a program using Java Script / VBscipt that checks if two matrices have identical values in all the elements
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
In our application qtp unable to indentify the menu items,we tried number of times to add objetcs into object repository but fail. through normal recording mode only objects going to add into repository but while running same recording script qtp showing a error like " unable to indentify the object". in repository there is no any properties and pro values for that object and also i tried with virtual object config also unable to find the object in application and in repository. Then what i have to do to identify menu objects????? can anybody hell me pls..............
Why to use option explicit in vb script?
Out of the different type of operators, which are evaluated first and last in the vbscript language?
What is the use of the instr function?