Computer Science, asked by saraswatisenapati199, 2 months ago

write a java program to implement a simple calculator.

Answers

Answered by soniya102saxena
0

Explanation:

Java Program to Make a Simple Calculator Using switch...case

Example: Simple Calculator using switch Statement The * operator entered by the user is stored in the operator variable using the next() method of Scanner object. Likewise, the two operands, 1.5 and 4.5 are stored in variables first and second respectively using the nextDouble() method of Scanner object.

Answered by pratham7777775
11

Answer:

Explanation:

Simple Calculator using switch Statement The * operator entered by the user is stored in the operator variable using the next() method of Scanner object. Likewise, the two operands, 1.5 and 4.5 are stored in variables first and second respectively using the nextDouble() method of Scanner object

Similar questions