write a vb script to generate the following pattern

*****
****
***
**
*

Answer Posted / sanju

ioutput=""
inum=inputbox("enter number")
For indx1 = inum To 1 step-1
For indx2 = 1 To indx1
ioutput=ioutput&"*"
Next
print ioutput
ioutput=""
Next

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is vbscript procedures?

602


Is vbscript language a case-sensitive language and what does it mean?

545


Mention how to assign a date value to a variable?

585


Explain about the asc function?

603


where can i learn VB scripint ?

1594






hi i am trying for testing job for 3+ experience(fake) can u suggest me what type of projects i can keep in my resume and how much of knoeledge i should have abt that project.thnks in advance.urgt plz

2580


Mention what are the rules to name variable in vbscript?

538


What are lbound and ubound in the vbscript language?

602


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

3551


How will you get a random number between 0 and 1 in vbscript?

717


Why to use option explicit in vb script?

596


what is the object hyrarchy in QTP for a web based application

1881


If else for do while select in vb script?

640


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

1787


Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3032