write a vb script to generate the following pattern
*****
****
***
**
*
Answer Posted / nilesh banjare
Num=InputBox("Please enter the number")
For j = 1 To Num Step 1
str= ""
For i = Num to j step -1
m="*"
str = str & m
Next
print str
Next
OUTPUT:-
*****
****
***
**
*
| Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Mention the rules for using option explicit statement?
what is the object hyrarchy in QTP for a web based application
Explain about operator precedence in vb script?
Capture the Unique label changes on google home page for I am feeling lucky button and save those label changes to Notepad Note: Using QTP
Mention what is vbscript?
What is the event handling in vbscript?
What are the data types supported by vbscript?
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.
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
where can i learn VB scripint ?
What are the 2 ways in which a variable can be declared in the vbscript language?
Explain the support of asp for vb script functionality?
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.
How you can call vbscript functions?
Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository