write a vbscript for finding the sum of the numbers from 1-
50
Answers were Sorted based on User's Feedback
Answer / jethva_trupti
<html>
<body>
<script type="text/vbscript">
dim n,i,sum
sum=0
i=1
n=5
do while (i<=n)
sum=sum+i
i=i+1
loop
document.write(sum)
</script>
</body>
</html>
| Is This Answer Correct ? | 60 Yes | 15 No |
Answer / 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 |
Answer / kishore
dim n
n=inputbox("enter a number")
k=(n*(n+1))/2
msgbox k
| Is This Answer Correct ? | 10 Yes | 13 No |
write a program to display the system specifications of client system with the help of vbScript.
wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me
Why is the use of exit do or exit for statements within loops discouraged?
Can anyone help me in write coding to get this pattern * ** *** ****
What is purpose of scripting.filesystemobject class in vbscript?
create a form to accept username and password validate the username and password with using message box, display the corresponding user message
What is wrong with the following code: <%afname="header.asp"%><!?#include file ="<%=afname%>"?>
What methods are used to create text files and open text files in the vbscript language?
Is it possible to pass optional argument to function in vb script?
How will you get a combined string from array of string in vbscript?
write a vbscript for finding the sum of the numbers from 1- 50
write a vb script to find simple interest using functions