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 are the environments supported by vbscript language?

504


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1490


1. How to handle object implementation change in DP for Ex: i have login page with username,pasword (editboxes),login,cancel(buttons). Here i written DP code for login page with the help properties. My questions: 1.If properites are changing dynamically i will do (i want code for that) 2.if objects are changed dynamcally i will do (i wnat code for that)

1614


Mention the rules for using option explicit statement?

482


does anyone have qtp11.0 license key.Please sendit to my mail id-rrvv2011@gmail.com...Thanks

2504






For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id gayatrisahooin@hotmail.com

1750


What is the use of option explicit in vbscript?

542


How will you get the natural logarithm of the given number in vbscript?

601


How to Import data from a file (file is on the desktop) to the data table

1578


What is byref and byval parameters in vbscript?

604


Which function allows you to instantiate an object given its programmatic identifier or progid?

560


What is difference between vbscript and vba?

611


Compare java script and vb script?

591


Which object provide information about a single runtime error in a vbscript?

599


What are the 2 ways to pass a value to the function?

513