*
**
***
Please write a code to get output like above diagram? ple explain as it how the code works?

Answers were Sorted based on User's Feedback



* ** *** Please write a code to get output like above diagram? ple explain as it how the code wor..

Answer / pratap

for i=1 to 3 step 1
for j=1 to i step 1
vstr=vstr&"*"
next
vstr=vstr&vbnewline
next
msgbox vstr

Is This Answer Correct ?    1 Yes 0 No

* ** *** Please write a code to get output like above diagram? ple explain as it how the code wor..

Answer / manjunathareddy

For i=1 to 3
Var=Var&" "& string(i,"*")&Vbnewline
Next
Msgbox Var

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More VB Script Interview Questions

a function that takes an integer array as an argument and returns the largest value in the array. Use the function in a program

1 Answers  


how to comvert 120 into one hunderd twenty rupees only and vice varsa

0 Answers  


wht must be the interview question on corinthian information technology solutions incorporated.

0 Answers   HP,


Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble

0 Answers   GCE, Sapient,


Explain about scrrun.dll?

0 Answers  






Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

0 Answers  


sunday is sunday monday tuesday wendesday sunday thursday friday saturday sunday sunday how to count no of sunday in the text file from vb? Answer me asap

4 Answers  


Why is the use of exit do or exit for statements within loops discouraged?

0 Answers  


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

0 Answers  


What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>

1 Answers  


How can you destroy an object in vbscript?

0 Answers  


Hi, can any one tell this Actually I AM NEW TO QTP I have one qtp script in which it calls the vbs file during it's run TIME by using the ExecuteFile "absolute path" If the vbs file is executed seperately it will give the output in a msgbox In the same way if qtp script is executed the result will be displayed in w result window right? Now the question is how to get that vbs file output in the qtp result window when I run the qtp script which calls the vbsfile during it's run TIME

1 Answers  


Categories