write a vb script to generate the following pattern
*****
****
***
**
*
Answer Posted / prathyusha
For i=5 To 1 Step-1
For j=1 To i
v=v&"*"
Next
n=n&vbCrLf&v
v=""
next
MsgBox n
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
How many types of operators are available in the vbscript language?
Which respective symbols are used to separate a line and to break the lengthy statement into multiple statements in the vbscript language?
filter the array values without using filter function?
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
Explain about scrrun.dll?
what is the standards used for writing the script in QTP
Mention what is select case statement?
Explain the tristate constants in vbscript?
1. How do declare public variable in vb scripts?
How to throw an error in vbscript?
Which operator can be used to do an xor operation in vbscript?
How will you get the last occurrence of one string within another string using vbscript?
What are the rules to name variable in vbscript?