write a vbscript for finding the sum of the numbers from 1-
50
Answer Posted / ankita
dim i ,n ,sum as integer
n=50
sum=0
for i=1 to n
sum=sum+i
msgbox("sum of 1 o 50 no. =" +sum)
next
| Is This Answer Correct ? | 19 Yes | 7 No |
Post New Answer View All Answers
How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.
How to pass argument by reference to a function in vbscript?
Explain about .wsf files?
What are the valid scopes of a variable in vbscript?
How to Convert Hex color code to color name in VB Script?
Is vbscript a case-sensitive or case-insensitive?
what is the standards used for writing the script in QTP
How to Import data from a file (file is on the desktop) to the data table
What is the output of a + b in vbscript if a = 5 and b = 10?
Explain about the extension .hta?
Explain some uses of vb script?
how to increase the values in text box in a given text box increament by two values by clicking on button
Why is it recommended to close the database connection every time after the work is completed?
How can the spaces from the string be removed?
How will you get a string with the specified character the specified number of times in vbscript?