write a vb script to generate the following pattern

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

Answer Posted / eswar

x = "*"
For i=5 to 1 step -1
For j=1 to i
y = y&x
Next
y=y&" "
Next
MsgBox y

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of a constant declared using public?

567


What is difference between vbscript and vba?

612


What are the advantages of vbscript?

648


How to access array data?

545


Explain vbscript in detail?

617






Mention how to create a cookie using vbscript?

535


When to use function procedures and what are its characteristics?

555


What are keywords in the vbscript language?

527


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1247


Does VB/Win make standalone .EXE files?

2903


Which in-built function is used to format the number in the vbscript language?

581


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

2583


What is byref and byval parameters in vbscript?

609


How you can call vbscript functions?

581


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

1742