Hellow...How to count and sum even and odd integers from a sequence of integers..?
amirul_1
0
Newbie Poster
Recommended Answers
Jump to PostsumEven=0; sumOdd=0; loop through the integers list { if(integer is even) sumEven+=integer; else sumOdd+=integer; }
All 2 Replies
Reply to this topic
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.