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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how to i add the values using the check points property?( i.e valid data(for valid data it's giving the footer message:value is added) and for invalid data: special chars, spaces,Duplicates and null values (in my page when ever we enter special chars, spaces and null values, it's giving the proper warning message and for Duplicates it's giving the footer message:"value already exists)?

1409


how to know no.of mails in our g mail by using vb-script

1767


How does quicktest professional identifies the object in the application?

537


desribe a situation where u faced a stressful situation and how did u cope with it

1395


What are the types of object repository?

566






Can we run multiple QTP scripts one after the other without manual intervention? How?

585


What are the benefits of quick test pro(qtp)?

545


explain abt dyanamic changing object with example?

1891


What is qtpro? What is quick test pro?

545


If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?

1728


Explain step generator in qtp?

630


In qtp, how you can use xpath to identify objects?

598


How to save your test using quicktest professional (qtp)?

581


How to use the object spy in quicktest professional (qtp) 8.0 version?

500


What kind of performance is expected on the client side (e.g., how fast should pages appear, how fast should animations, applets, etc. load and run)?

577