need help with switch

What im trying to make is a Compound/Simple Interest Calculator and i want the user to be able to chose which one they want (a compound calc or a simple calc).
So i want the beginning question to be like this on the cmd:
Would you like to use the Compound Interest Calculator (CIC) or the Simple Interest Calculator (SIC)?
If you would like to use the CIC then type CIC.
If you would like to use the SIC then type SIC.



I think im supposed to use a switch but im not sure how.
i wanted something more specific like someone telling me. thats what this forum is for.
closed account (3hM2Nwbp)
cplusplus.com helps those who help themselves, to steal a quote from someone else.

http://cplusplus.com/doc/tutorial/control/

You would be better off using an conditional "if" structure rather than a switch in your case.
Last edited on
Topic archived. No new replies allowed.