Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3
5 4 5
Answers were Sorted based on User's Feedback
Here....
For i = 1 To 5
For j = 5 To i Step -1
temp = temp & " " & j
Next
MsgBox temp
temp = ""
Next
| Is This Answer Correct ? | 12 Yes | 3 No |
Answer / vishnu
'5 4 3 2 1
'5 4 3 2
'5 4 3
'5 4
'5
For i=5 to 1 step -1
temp = temp & i
Next
For i=5 to 1 step -1
print temp
temp = left(temp,i-1)
Next
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / sireesha
For i = 1 To 5
For j = 5 To i Step -1
temp = temp & " " & j
Next
MsgBox temp
temp = temp&vbnewline
Next
msgbox temp
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / ravindra v
For i=1 to 5
For j=5 to i step -1
temp=temp&j
Next
print temp
temp=null
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / machiraju veera venkata naga s
p=""
For i = 1 To 5 Step 1
t=""
For j = 5 To i Step -1
t=t&" "&j
Next
p=p&""&t
Next
print p
(Test this code right now... Its mine.)
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / bhargavi
For i = 1 To 5
For j = 5 To i Step -1
temp = temp & " " & j
Next
If i=5 Then
print temp
End If
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pravati
Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5
x="5 4 3 2 1 5 4 3 2 5 4 3 5 4 5"
y=split(x," ")
msgbox ubound(y)
For i = 0 to ubound(y) Step 1
msgbox y(i)
Next
| Is This Answer Correct ? | 0 Yes | 0 No |
a=inputbox("enter number")
b=len(a)
For i=b to 1 step -1
c=left(a,i)
d=d&c&vbnewline
Next
msgbox d
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / phu
for i=4 to 0 step-1
{
for j=0 to i step+1
print (5-j)
}
| Is This Answer Correct ? | 0 Yes | 4 No |
How to add a page checkpoint to your test?
What is Environment Variable and when we apply this in QTP?
Suppose I want fail that check point? How can you do that?
difference between multiple parameterization and data driven wizard in QTP?
Is it possible to change the extension of Shared object repository?
How many types of actions are there in quicktest professional?
How you can find length of array in qtp?
How to use parameterization in qtp?
How we can do Batch testing in QTP?
how do u handle an object with out name in our application using QTP 9.2?
hi to all, i need a code.. in flight application 1.i need to login first then i need to insert 3 new orders... 2.i have to log out 3.i have to login again with different user 4.need to insert 2 new orders 5.then need to log out 6.then again login with different user 7.3 new orders create and log out 8.but we hv to do this using data table and actions please help me
write vbscript in qtp tool for senario, in the given sheet add each number in each row and each colunm and show result