javescript program that adds all even integers between 1 to 100

Recommended Answers

All 5 Replies

Its better you start learning basics of Javascript from w3schools coz this is a very easy program.

thank you its just that i dnt have enough time to do so thats why i asked for help

thank you its just that i dnt have enough time to do so thats why i asked for help

As you do not have time, i am giving you tha code but please, asking for code will nto work every time. You will have to learn the language.

count = 0;
for(i=0;i<=100;i+=2)
count+=i;
alert(count);

thank you
god bless :D

wep surely i will learn it as its a need

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.