Question: 3. Write a C program using switch-case to perform simple arithmetic operations such as addition, subtraction, multiplication and division. It should input a real number,
3. Write a C program using switch-case to perform simple arithmetic operations such as addition, subtraction, multiplication and division. It should input a real number, followed by a mathematical symbol (+or/),followed by another real number. Then it should display the answer based on symbol. Note: If 2d number is zero in case of division, then display an hint: this program is somehow similar to the example in lab 4] error message.] This program can perfom simple arthmetc operations Please enter , | bloedbyamatentasymbol(+,-,..orntio edbyarcher real nnter a number 20.50 2.00 Answer= 10.25
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
