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 to Import data from a file (file is on the desktop) to the data table
i wrote vbscripit code in notepad i got error i am in learning stage if u ps tell me what wrong in my code my error is "object required descriptive at line one run time error"and my code is "set usernameobj=Descriptive.Create() usernameobj( "name").value="Username" set passwordobj=Descriptive.Create() passwordobj("name").value="password" set signinobj=Descriptive.Create() signinobj("name").value="sigin" browser("gmail").page("gmail").WebEdit("usernameobj").set ("enter username") Browser("gmail").Page("gmail").WebEdit("passwordobj").Set secure.Crypt.Encrypt("enter password") browser("gmail").page("gmail").WebButton("siginobj").click
What are the valid scopes of a variable in vbscript?
Explain about the functionality of vb script?
How strcomp function works?
how to increasing the numbers in a given text box please write a vb script
What methods are used to create text files and open text files in the vbscript language?
How many types of procedures are available in the vbscript language?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
What is the use of the formatdatetime function in the vbscript language?
Explain about the extension .hta?
How do you declare a variable in vbscript?
Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.
HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.
What is the difference between do until loop and do while loop?