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

*****
****
***
**
*

Answers were Sorted based on User's Feedback



write a vb script to generate the following pattern ***** **** *** ** *..

Answer / mudaseer

for i=5 to 1 step -1
for j=i to 1 step -1
vstr=vstr & "*" & " "
next


vstr=vstr & vbnewline
next
msgbox vstr

Is This Answer Correct ?    30 Yes 6 No

write a vb script to generate the following pattern ***** **** *** ** *..

Answer / prathyusha

For i=5 To 1 Step-1
For j=1 To i
v=v&"*"
Next
n=n&vbCrLf&v
v=""
next
MsgBox n

Is This Answer Correct ?    7 Yes 0 No

write a vb script to generate the following pattern ***** **** *** ** *..

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

write a vb script to generate the following pattern ***** **** *** ** *..

Answer / sumathi

For i=5 to 1 step -1
var=string(i,"*")
print var
Next

Is This Answer Correct ?    14 Yes 11 No

write a vb script to generate the following pattern ***** **** *** ** *..

Answer / eswar

x = "*"
For i=5 to 1 step -1
For j=1 to i
y = y&x
Next
y=y&" "
Next
MsgBox y

Is This Answer Correct ?    6 Yes 4 No

write a vb script to generate the following pattern ***** **** *** ** *..

Answer / sanju

ioutput=""
inum=inputbox("enter number")
For indx1 = inum To 1 step-1
For indx2 = 1 To indx1
ioutput=ioutput&"*"
Next
print ioutput
ioutput=""
Next

Is This Answer Correct ?    2 Yes 1 No

write a vb script to generate the following pattern ***** **** *** ** *..

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

More VB Script Interview Questions

how to write validation function for date in vb script

0 Answers  


Which is the default Data types in VBScript?

5 Answers  


write a vb script to generate the following pattern ***** **** *** ** *

7 Answers   Blue Star,


write a vb script to generate fibonnaci numbers

1 Answers  


which is the good software training centre in bangalore?

1 Answers  


Explain How do you create a recordset object in vbscript?

0 Answers  


write a vb script to add two 2*2 matrix

2 Answers  


Find Out Length of an array without using Ubound?

1 Answers  


write a vb script to generate hello 5 times using do until loop

4 Answers  


VBscript for QTP,best tutorial?

2 Answers   Wipro,


in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script

2 Answers  


what is descriptive programming in QTP and what is environment variable in QTP? where we store and what is its use?

4 Answers   Perot Systems,


Categories