can anyone help.. using switch statement

3. Write a program that will prompt the user to enter two “real” numbers (X and Y) and then prompt the user to enter a third integer number corresponding to one of 4 possible behavioral options as follows:
• Have the user enter number 1 if the aim is to add X and Y
• Have the user enter number 2 if the aim is to subtract Y from X
• Have the user enter number 3 if the aim is to multiply X by Y
• Have the user enter number 4 if the aim is to divide X by Y

thanks
Last edited on
I won't but http://www.cplusplus.com/doc/tutorial/control/ is offering to help you. Scroll to the bottom to locate the switch control statement. Apply it to your code, then post back here if you have a more specific question than "Do this for me."
Topic archived. No new replies allowed.