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

Mention when to use function procedures and what are its characteristics?

627


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

620


What is the use of the date function in the vbscript language?

561


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

1588


where can i learn VB scripint ?

1594






what is diff between static and dynaic arrys?

1584


When to use function procedures and what are its characteristics?

549


how to set one column as primary key in QTP and fetch values accordingly

1819


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

3188


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

1456


Is vbscript a case-sensitive or case-insensitive?

750


Explain the tristate constants in vbscript?

561


How will you get a string with the specified character the specified number of times in vbscript?

571


What are the naming conventions while declaring a variable in the vbscript language?

618


why variable name should not exceed 255 characters?

1815