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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the key points to create a framework in QTP for oracle forms?

1775


How many add-ins comes by default with quicktest professional?

537


How to use transactions in qtp?

534


Explain the terms test and business component?

519


Explain data driven framework?

548






what kind of frame work you used in your last project?

1789


How to delete an object from the object repository?

568


What is action?

554


Can the user toggle between using Local OR and shared OR for the same action?

537


What is debugging? How you debug your script?

584


Hi All, I need code for how to execute qtp scripts from excell sheet

1435


HI, pls help me on this, iam not able to capture getcelldata value in javatable... msgbox javawindow("").javatable("").getcelldata(3,3) but it diaplays empty...

2373


whare exactly we have to use functions and sub routain

1819


How do you capture tooltip using QTP?

603


Is there any pdf or online book for QTP Scripting? Let me know more about QTP Scripting.

2399