Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write a vbscript for finding the sum of the numbers from 1-
50

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what is the difference between vbscript and vba?

975


In what way program "hello world" you can write in vbscript?

1067


Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder

2083


1. How do declare public variable in vb scripts?

2041


How to capture a runtime error in vbscript?

1091


how to answer "TELL ME ABOUT UR SELF" as exp.person. whr to start and whr to stop. can anyone tel me

1794


wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......

1839


How to create a function in vbscript?

1142


Explain the scope of the variables using dim, public, and private keywords respectively.

1102


What is the technology used by vb script?

918


Explain a few date functions in vbscript

939


What is vbscript procedures?

1065


What are keywords in the vbscript language?

962


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

1021


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

955