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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the standards used for writing the script in QTP

1885


How are values assigned to the variables in the vbscript language?

569


What's the difference between vbscript and vb.net?

550


Differentiate javascript and vbscript?

567


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

1846






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

2028


Explain about scrrun.dll in vbscript?

646


what is inner join? what is outer join? what is a constraint? tell me about rdbms? tell me about acid properties?

1430


How should i Create Email invite with server-side Coding?

1600


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

1442


What is vbscript procedures?

600


When does ‘on click of button’ event gets triggered in the vbscript language?

544


Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?

2030


Which function is used to perform string comparison?

559


How will you release the memory acquired by an array variable in vbscript?

742