write a vbscript for finding the sum of the numbers from 1-
50
Answer Posted / kishore
dim n
n=inputbox("enter a number")
k=(n*(n+1))/2
msgbox k
| Is This Answer Correct ? | 10 Yes | 13 No |
Post New Answer View All Answers
What is the purpose of on error resume next statement?
Mention how to create a cookie using vbscript?
What is the difference between VBScript and JavaScript?
Is VB Script Case sensitive or Case insensitive?
We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
Mention characteristics of sub procedures?
How to add actions in driver script to run those actions in QTP?
1. How do declare public variable in vb scripts?
How to capture a runtime error in vbscript?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
What is purpose of scripting.filesystemobject class in vbscript?
Hellow friends, I am learning QTP,but here problem is VB script. please guide me how to learn VB script w.r.t QTP and if you know any books tell me or if you have any materials or any use full material or any else w.r.t QTP please post me p.p.sekhar
What is the difference between vbscript and vba?
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
How will you get a random number between 0 and 1 in vbscript?