main.m1285 chars42 lines
This program prompts the user to choose an operation (addition, subtraction, multiplication, or division) and then prompts the user to enter two numbers. A switch statement is used to perform the chosen operation and the result is displayed to the user. A conditional statement is used to check for division by zero.
gistlibby LogSnag