Can anyone help me write this program?

Im a beginner to C++. Its my first year in college. Im completely stuck at this. Can anyone post a program of how it would look for this problem? Here is a picture of the problem. If you guys could use the numbers "2, 6, and 9" That would be great. Thanks in advance guys!

http://i.imgur.com/cewJm3z.jpg
Last edited on
Read in numbers like this:
http://www.cplusplus.com/doc/tutorial/basic_io/

and store the values in an array:
http://www.cplusplus.com/doc/tutorial/arrays/

or, even better (if you can use them) in a vector:
http://www.cplusplus.com/reference/vector/vector/


Get an array/vector full of your values working first I reckon, see how far you get.

edit: no one here (at least I hope not) will write a program from scratch for you. You'll not learn anything like that.
Last edited on
Duplicate of http://www.cplusplus.com/forum/beginner/124632/

Please don't spam the forums with multiple threads for the same topic.
Topic archived. No new replies allowed.