Mathematic operations using scanner class | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Mathematic operations using scanner class

I'm beginner

17th Oct 2022, 1:58 PM
intuyous
3 Respostas
+ 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