write a vb script to generate the following pattern

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

Answer Posted / nilesh banjare

Num=InputBox("Please enter the number")
For j = 1 To Num Step 1
str= ""
For i = Num to j step -1
m="*"
str = str & m

Next
print str
Next

OUTPUT:-
*****
****
***
**
*

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of procedures are available in the vbscript language?

536


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

1826


Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?

582


create a form to accept username and password validate the username and password with using message box, display the corresponding user message

2165


Which keyword is used to declare a variable in the vbscript language?

533






why variable name should not exceed 255 characters?

1822


Explain different types of segment?

575


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1417


How to Convert Hex color code to color name in VB Script?

3934


If else for do while select in vb script?

645


Why to use option explicit in vb script?

602


Explain few date functions in vbscript?

616


Explain the arrays in vb script?

596


What are class variables?

620


Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function

1921