Question: Write a menu - driven program for a simple calculator. The menu should have the following options: Addition, Subtraction, Multiplication, Division, and Quit. Use a
Write a menudriven program for a simple calculator. The menu should have the following
options: "Addition," "Subtraction," "Multiplication," "Division," and "Quit." Use a while loop to
repeatedly display the menu and perform the selected operation until the user chooses to quit.
Sample Input and Output:
Addition
Subtraction
Multiplication
Division
Quit
Output should be like:
Choose your operation:
Enter the first integer:
Enter the second integer:
Result:
Addition
Subtraction
Multiplication
Division
Quit
Choose your operation:
GoodBye!
Optional question: Just for your own practice.
Write a program that takes an integer input from the user and prints all numbers from to n
that are divisible by
Sample Input:
Enter an integer:
Output:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
