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 / lakshmi

for i=1 to 5
for j=5 to i step -1
temp=temp & " "& j
Next
temp=temp&vbcrlf
Next
Msgbox temp

Is This Answer Correct ?    3 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 / vishnu

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 ?    0 Yes 3 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  


Does quicktest professional (qtp) is unicode compatible?

0 Answers  


can any one explain with an example how to test Web application using qtp

3 Answers  


How do you delete unwanted results in qtp?

0 Answers  


what is smart identification?

7 Answers  






Hi Currently am using Qtp 10.0 Lisenced product.. but when am adding objects to object repository from google page it was identifying as windows objects.. please help me!!!

3 Answers  


What is FRAME WORK? How many Frameworks can QTP supports?

4 Answers  


What are different versions in Win Runner ,QTP ,Load Runner and Test Director till now and atleast please let me know new features for each version. Ex QTP8.2,QTP 8.5.QTP9.2 supports Mozilla 2.0

1 Answers   DELL,


What is object spy in quicktest professional?

0 Answers  


How to differentiate the webedit field like user name and password? Please tell any other best answer is ther

3 Answers   Navis,


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

0 Answers  


What is the Obect Repository type, we use in Automated Testing..in Real time.. Pls anybody can give the answer.. Thanks in advance...

5 Answers   Navis,


Categories