By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,359 Members | 1,543 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,359 IT Pros & Developers. It's quick & easy.

C++ - Program to Input and Sum Only Even Numbers

P: 1
Here is what I am supposed to do...Write a C++ program that asks for 10 numbers and prints the sum of only the even numbers. I also have to use an if statement and a while loop. Please please please help, I feel dumb!!!
Aug 22 '08 #1
Share this Question
Share on Google+
2 Replies


boxfish
Expert 100+
P: 469
Hi,
Can you write a program that asks for ten numbers using a loop? That would be the first step toward writing this program.
Aug 22 '08 #2

sicarie
Expert Mod 2.5K+
P: 4,677
colordrm88-

Welcome to bytes.com, please have a look at the rules of this forum. In accordance with those rules, I've changed your thread title to actually describe your problem, as we don't allow "help!" "hi" etc...

As boxfish asked - are you familiar with reading in data? Loop control? Summation and printing? Where are you getting stuck on this - what do you need help with?

sicarie
Aug 22 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.