Can anyone help me in write coding to get this pattern
*
**
***
****

Answers were Sorted based on User's Feedback



Can anyone help me in write coding to get this pattern * ** *** **** ..

Answer / rajani_kanth

Option Explicit
Dim i,j,k
for i=1 to 5

for j=1 to i

k=k&"*"&" "
Next
k=k&" "&vbnewline
next
msgbox k

Is This Answer Correct ?    1 Yes 0 No

Can anyone help me in write coding to get this pattern * ** *** **** ..

Answer / anil

For i=0 To 4
For j=0 To i
vstr=vstr&"*"&""
Next
vstr=vstr &" "
Next
msgbox vstr

Is This Answer Correct ?    3 Yes 3 No

Can anyone help me in write coding to get this pattern * ** *** **** ..

Answer / chandu

a=4
for i=1 to a step 1
b= string(i,"*")
c=c&" "&b
next
msgbox c

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More VB Script Interview Questions

Please Example programms on vbscript 1)writing functions and calling functions

2 Answers   CIL, TCS,


how to automatically update the sql server2005 database records when insert in vb6?

0 Answers  


which is the good software training centre in bangalore?

1 Answers  


How will you get the smallest subscript of an array in vbscript?

0 Answers  


How to write VB script for login module?

0 Answers  






Explain about the functionality of vb script?

0 Answers  


Difference between Function and Sub routine?

0 Answers   Polaris,


. Program for sorting of numbers in vb script?

2 Answers   Talent Sprint,


Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?

0 Answers  


How strcomp function works?

0 Answers  


write a vb script to display first 5 odd numbers from 1 to 100

4 Answers  


join all the array values without using join function?

1 Answers   CSS Corp,


Categories