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 |
write a vb script to print even numbers from 1-50?
6 Answers Kclink Technologies, Logica CMG,
What r types of parametarizations?
What is a checkpoint? How many check points are there in qtp?
in qtp how can we do test when the build is not ready
what are the mandatory properties for a tex boxc (scenario?)
how many maximum number of virtual users we can create?
Without QTP (or any Testing tool) can we able to test the GUI part of the Applications. for Example generating the Scripts in Notepad and Executing them Using VB. Is it Possible to do so..
How can i open a file in Textpad and replace a string with another using QTP
What is QTP scenario.
how to do spell check in QTP? reply please
How to invoke Mozilla from QTP thru VB Script
If already everything is tested using White-Box testing, then what is the need of using Black box testing?