Computer Science, asked by pragnashree330, 5 hours ago

1. Write a calculator program that takes as input two numbers and one operator perform mathematical operation and prints the calculated result....As java

Answers

Answered by yogeshkumarjewar2
2

Answer:

Java Calculator Program: Write a calculator program in Java that takes as input two numbers and a mathematical operator to perform mathematical operation and prints the calculated result. Based on the operator entered, perform the calculation, that is, '+' for addition, '-' for subtraction, '*' for product and '/' for division. For operators other than these, print the message "INVALID OPERATOR". (Make use of switch-case construct).

Similar questions