0
Java condition question
1. Make a Calculator. Take 2 numbers (a & b) from the user and an operation as follows : 1 : + (Addition) a + b ● 2 : - (Subtraction) a - b ● 3 : * (Multiplication) a * b ● 4 : / (Division) a / b ● 5 : % (Modulo or remainder) a % b Calculate the result according to the operation given and display it to the user.
5 Réponses
+ 3
There is no question. This is merely a task instruction. Your homework, I guess.
If you need help, ask a question and show your code attempt.
If you want others to do the work for you: No.
+ 3
SHOW YOUR CODE.
+ 1
Sololearn isn't a code writing service.
If you need help, we need to see your effort, attach your code, tell us what's wrong.
Read these:
https://www.sololearn.com/discuss/3021159/?ref=app
https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app
https://sololearn.com/compiler-playground/WZ8lkR6gTex6/?ref=app
https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app
0
I used switch statement but didn't happen
0
Sorry Lisa forgotten about this and thanks for support.