+ 1

Mathematic operations using scanner class

I'm beginner

17th Oct 2022, 1:58 PM
intuyous
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.
17th Oct 2022, 2:13 PM
Lisa
Lisa - avatar
0
What is your question? Please describe what you want to do. Give input and output examples please.
17th Oct 2022, 2:06 PM
Lisa
Lisa - avatar
0
Create a program that will use the mathematic operations ( Addition, Subraction, Multiplication and Division) .You may use Scanner class for this program.
17th Oct 2022, 2:10 PM
intuyous