How do i write a program that computes the sum of all even numbers in a range forexample between 1 and 100
Mahbeezzy
0
Newbie Poster
Recommended Answers
Jump to Post1) Open program to write code
2) Write code
3) Compile code
4) If you have errors fix them and go to step 3 else continue
5) Run code and make sure you get what you want else go to step 2
Jump to PostYou count from 1 to a hundred, and if the number is even you add it to your total.
All 6 Replies
NathanOliver
429
Veteran Poster
Featured Poster
Moschops
683
Practically a Master Poster
Featured Poster
triumphost
120
Posting Whiz
TObannion
0
Junior Poster in Training
aremik.rashid
0
Newbie Poster
TObannion
0
Junior Poster in Training
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.