+ 1
Mathematic operations using scanner class
I'm beginner
3 Réponses
+ 3
– Start by creating a scanner object.
– Then get 3 inputs (2 numbers, 1 for the operator)
– Make sure that the numbers are of the appropriate data type.
– Now you can use an if-else-if statement to determine which input-operator performs the calculation.
– Calculate and output the result.
0
What is your question?
Please describe what you want to do. Give input and output examples please.
0
Create a program that will use the mathematic operations ( Addition, Subraction, Multiplication and Division) .You may use Scanner class for this program.