If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Basically I don't want the program to exit once I get an anser.
So I put in a while loop to equal 5 so every equation gets worked once, but I know it's not right and my reference book doesn't give much insight to what I'm supposed to do. Could someone help me by telling me where to put this while loop in?

It's C++ and I'm using the Micorosoft Visual, this is a ms-dos .exe so at the end of the program I get that "Press any key" thing.

There are probably better ways to do this but it's quick-n-dirty and gets the job done, I think. This is without a compiler to check.

We the willing, led by the unknowing, have been doing the impossible for the ungrateful. We have done so much with so little for so long that we are now qualified to do just about anything with almost nothing.

EDIT: I know that there is no case for five, but the program will end itself before the user even sees the whole 'invalid command' bit. I still oughta have added an "any key to quit" part... Also, due to the data types (integers) this program will round the results... If you change the data types for Number and Number2 to "double" then you'll get much more accurate answers when decimals are involved in the input or if you are dividing.