Question: 1. Write a C program to perform simple arithmetic operations such as addition, subtraction, multiplication and division in a loop. It should input a real
1. Write a C program to perform simple arithmetic operations such as addition, subtraction, multiplication and division in a loop. It should input a real number, followed by a mathematical symbol(+-,or/), followed by another real number, Then it should display the answer according to the operation selected. Finally, it should ask the user if s/he wants to continue (y for yes or n for nol; and should repeat the operations in case of yes Note: If 2 number is zero in case of division, it must display an error message and get the input agai.) Here is a sample run of the required program a number, mathematical symbol (or/ ymbol (+,-.or /), and another number (e.g., 5.5+2.5) 20.50/ 2.00 Answer10.25 Do you want to run this program again (Y or NEn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
