0

--------------------------------------------------------------------------------

Hi,
I have a calculation (shown below):

total=(dogs + cats);

I want to be able to store the answer for total
I stupidly tried to put a cin statement underneath but that doesnt work.

when i used cin, my prog just waits for me to enter a value.

What would i use?

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by Ancient Dragon
0

First you have to populate the two arrays dogs and cats. cin might be useful for that. After that is done then use a loop to sum them up

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.