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


Please Help Members By Posting Answers For Below Questions

1. How do declare public variable in vb scripts?

1579


Explain what is loose binding? Why is it not a good practice to use it?

583


I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?

864


What are the special sub-types in vbscript?

554


How to get the length of the string by making use of the string function?

573






What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?

489


Mention what is byref and byval parameters in vbscript?

579


How will you get the natural logarithm of the given number in vbscript?

607


write any ttest cases using check points and parameterization

1823


Explain a few date functions in vbscript

558


What are class variables?

620


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

526


A folder is there inside no of textfiles are avilable. How do count the textfiles. Normally folder means we are using subfolder methods but textfiles is not working for subfolder methods and how do get file name also.

1512


Explain about vb script?

753


How will you get a subset of a array in vbscript?

591