Java condition question | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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.

23rd Feb 2024, 8:00 AM
Kunal Pal
Kunal Pal - avatar
5 Respostas
+ 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.
23rd Feb 2024, 8:05 AM
Lisa
Lisa - avatar
+ 3
SHOW YOUR CODE.
23rd Feb 2024, 8:16 AM
Lisa
Lisa - avatar
23rd Feb 2024, 8:06 AM
Ausgrindtube
Ausgrindtube - avatar
0
I used switch statement but didn't happen
23rd Feb 2024, 8:09 AM
Kunal Pal
Kunal Pal - avatar
0
Sorry Lisa forgotten about this and thanks for support.
26th Feb 2024, 6:47 PM
Kunal Pal
Kunal Pal - avatar