Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

Answer / ashok kumar

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

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

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

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

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

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

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

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

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

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

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

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

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

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

Answer / pushkar1206

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

Write a script to print below pattern 5 4 3 2 1 5 4 3 2 5 4 3 5 4 5 ..

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

Post New Answer

More QTP Interview Questions

is it possible to check the text displayed in the tool tip using QTP? if so, how?

6 Answers  


Explain types of descriptive programming?

0 Answers  


What are the enhancements u did after recording ur script?

1 Answers  


HOW CAN QTP AND TEST DIRECTOR CONNECTED TO THE DATABASE AND WHAT R THE OPTIONS?

0 Answers  


What is the present version of the VB Script we are using

1 Answers  


How to open a new test using quicktest professional (qtp)?

0 Answers  


Wht is Smart Identification Mechanisam in QTP..Actually when do we this Technology means during Recording or running ....how is technology works. Anybody can expalin this .....Thanks in advacne

4 Answers   Siemens,


write a qtp code to count the number of child objects in login page and highlight it

2 Answers  


Hello everyone, I am trying to parametrize a script. Its clear to me that, we use data table to enter various text data. but if I want to change the radiobutton (e.g. if for first iteration I selected radio button 'A' and for second iteration I want to use 'B' radio button for second iteration) then how can I make it happen. I have tried to define the question but still if not clear plz tell me. Thanks everyone

1 Answers  


In descriptive programming how we know the properties of the objects, if application is not developed and the prototype of the application is also not developed.

1 Answers  


How to launch application under test through VBscript without using systemutil.run or invokeapplication?

3 Answers  


HOw to add the recovery file at runtime to the test file .

0 Answers  


Categories