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
How many types of procedures are available in the vbscript language?
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
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
Which keyword is used to declare a variable in the vbscript language?
why variable name should not exceed 255 characters?
Explain different types of segment?
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.
How to Convert Hex color code to color name in VB Script?
If else for do while select in vb script?
Why to use option explicit in vb script?
Explain few date functions in vbscript?
Explain the arrays in vb script?
What are class variables?
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