write a vb script to generate the following pattern

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

Answer Posted / sumathi

For i=5 to 1 step -1
var=string(i,"*")
print var
Next

Is This Answer Correct ?    14 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of operators and their order of precedence?

574


How to open a file. What is the perpose of true and false mode there?

614


why do u choose to go for testing why cant for devoloping

1596


Mention what is variant in vbscript?

561


how to check whether link is disabled in QTP??

5635






What is loose binding? Why is it not a good practice to use it?

635


Anyone have qtp11.0 crack?

2389


what is used of Property........End Property loop ? how to write the script for it?

1693


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1461


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1541


What is Procedure or Subroutine in VB Script?

606


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

864


What are class properties?

657


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1853


What are the different types of loops available in the vbscript language?

536