Computer Science, asked by unzalarehman, 2 months ago

The program should ask the user to enter a number, an operator, and another number. (Use floating point) it should then carry out the specified arithmetical operation: addition, subtraction, multiplication or dividing the two numbers. Use a switch statement to select the operation. Finally, display the result.​

Answers

Answered by purvi2020
1

Answer:

In this program we are going to Create the equivalent of a four function calculator. The program should request the user to enter a number, an operator, and another number. It should then carry out the specified arithmetical operation: adding, subtracting, multiplying, or dividing the two numbers. (It should use a switch statement to select the operation). Finally it should display the result. When it finishes the calculation, the program should ask if the user wants to do another calculation. The response can be ‘Y’ or ‘N’.

mark as brainliest If u like coz I need 7 of my answers to be brainliest to gain a new rank that is expert if u don't believe then u can check that I have more than thousand points but my rank isn't increasing

Similar questions