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

Whenever I use Wscript.Echo Qtp raising Run time error as 'Object required for Wscript' How I can create object for Wscript

1 Answers  


who will create the object?

0 Answers   Estuate,


Out of the different type of operators, which are evaluated first and last in the vbscript language?

0 Answers  


Mention what is the main difference between function and sub-procedure?

0 Answers  


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

0 Answers  


In qtp, how to use XML files for framework. if the XML files are more Efficient than Excel files?

1 Answers  


Explain the functionality of vbscript?

0 Answers  


Differentiate javascript and vbscript?

0 Answers  


How do you declare a variable in vbscript?

0 Answers  


what is the object hyrarchy in QTP for a web based application

0 Answers  


HI how can handle dynamic image through vb script example we have to create email id fill the edit box(these latters change wrong password) i am wating your answer

1 Answers  


Explain about tristate constants?

0 Answers  


Categories