Question: C programming 2 Test4:Program to create calculator using switch.case 1.Input two numbers and a character from user in the given format. Store them in some

 C programming 2 Test4:Program to create calculator using switch.case 1.Input two
C programming

2 Test4:Program to create calculator using switch.case 1.Input two numbers and a character from user in the given format. Store them in some variable say num1, op and num2 2.Switch the value of op i.e. switch(op). 3.There are four possible values of ople, and 4.For case '*' perform addition and store result in some variable Le result - num1 + num2 5.Similarly for case perform subtraction and store result in some variable le result = num! - num2 6. Repeat the process for multiplication and division, 7.Finally print the value of result (2003)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!