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
Explain a few date functions in vbscript
Explain about filter expression?
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
Anyone have qtp11.0 crack?
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
Mention what are the rules to name variable in vbscript?
How to access array data?
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
Differentiate javascript and vbscript?
Which function is used in the vbscript language to convert the specified expression into a date type value?
Mention what is the technology used by vb script?
What are the 2 ways to pass a value to the function?
What is select case statement?
What are the rules to name variable in vbscript?
Explain about the functionality of vb script?