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 / miko

Dim x,i,j

For i=1 To 5
For j=1 To i
x=x&j
Next
x=x&vbNewLine
next
MsgBox x

***********output*********

1
12
123
1234
12345

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the special sub-types in vbscript?

1020


How are values assigned to string type and numeric type variables?

960


What is the scope of a constant declared using public?

946


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

2845


How can the spaces from the string be removed?

985


How you can call vbscript functions?

1044


How do i automate a website www.flyashx.com without having any test cases witin a week time.

1877


How to delete a cookie using vbscript?

1110


What is the extension of the vbscript file?

1022


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1866


Explain the arrays in vb script?

1027


What are keywords in the vbscript language?

989


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

3645


What is the use of the instr function?

1020


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

2159