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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

wht type of User defined functions or Java Releated functions Do we write in VB scripting

1370


When you open QTP, how many sheets you can see?

641


can anyone tell me from where i can download qtp demo or crack version

1617


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1528


Hi ,Can any one pleas explain how to test splash objects using QTP?

1889






How to use setroproperty?

560


Explain sub procedure of vbscript.

578


How many lines of code in each script of QTP?

4026


what is object and child object.. explain ..if possible give some example for better understanding ..

1520


who QTP recognizes the object stored in object repository?

1652


What are the different types of action?

545


supose i hv to acsess some functionlaties of a test in 1 machin , some part other machin how can acsess?

1346


What are the different types of checkpoints?

574


Give the syntax to import/export xls into qtp.

576


What are the different properties of an web object

1419