Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 to Import data from a file (file is on the desktop) to the data table

2126


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

1909


What are the valid scopes of a variable in vbscript?

1148


Explain about the functionality of vb script?

1032


How strcomp function works?

1144


how to increasing the numbers in a given text box please write a vb script

2259


What methods are used to create text files and open text files in the vbscript language?

1023


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

1046


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 ?

1963


What is the use of the formatdatetime function in the vbscript language?

1071


Explain about the extension .hta?

1122


How do you declare a variable in vbscript?

1115


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

2084


HOw we can apply web service checkpoint in QTP 9.5? I tried it out with net connection also. But not getting success.

2554


What is the difference between do until loop and do while loop?

1125