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

Mention what if you do not specify anything when you call a procedure?

0 Answers  


How to get 120 using 5 zeroes, you can use any operator(+, *, /...) in qtp.

2 Answers   Cognizant,


Am working with web application. i faced one senario. i.e, webpage having webtable having two coloumns, in that first coloumn is for serial no and second coloumn is for mac address link, now i want to get first row second coloumn value, that having macaddress as link. Please help me how to get that link?

2 Answers  


Which operator can be used to do an xor operation in vbscript?

0 Answers  


How to make sure that items in a wintree are sorted al?

0 Answers   Ness Technologies,






How to open excel in vb script?

0 Answers  


How to insert snapshot during manual scripting in QTP?

1 Answers  


Explain a few date functions in vbscript

0 Answers  


1. How do declare public variable in vb scripts?

0 Answers  


I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.

0 Answers  


Hi I am having one folder with set of text files now i want to read and write that text files data into QTP. Any help plsss.

1 Answers  


Explain the scope of the variables using dim, public, and private keywords respectively.

0 Answers  


Categories