c++ noob need help

i am a beginner in c++ and i have an assignment. i need to make C++ program that will accept N numbers, and display its sum, the smallest value and largest value, as well as the number of odd and even inputs. I need to do it in looping. I really don't know what to do. Thank you for the help guys.

example of the output:

How many numbers? 5
1. Enter a number: 12
2. Enter a number: 10
3. Enter a number: 25
4. Enter a number: 30
5. Enter a number: 20

Sum: 97
Smallest value: 10
Largest value: 30
Even Inputs: 4
Odd Inputs: 1


Last edited on
Hey. Please don't spam the forum with identical posts - http://www.cplusplus.com/forum/beginner/184831/

Here is how you do input and output -
http://www.cplusplus.com/doc/tutorial/basic_io/

Here is how to check if something is odd or even -
http://www.cprogramming.com/tutorial/modulus.html

And here is how looping works in c++, you specifically need the for-loop -
http://www.tutorialspoint.com/cplusplus/cpp_loop_types.htm


It's your assignment, not ours.
Last edited on
Topic archived. No new replies allowed.