Operators in java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Operators in java

help me with this program... "create a program that will ask for type of operator and display the result " Ex. Choose operator 1 - arithmetic operator 2 - logical operator 3 - relational operator 4 - assignment operator you choose: 1 Enter a value1:12 Enter a value2:15 Result 12 + 15 = 27 12 - 15 = - 3 12*15 = 180 12/15 = 0 12%15 = 1 value1++ = 13 value2-- = 14

24th Apr 2017, 5:07 PM
Dexter Torres Gregorio
Dexter Torres Gregorio - avatar
1 Answer
0
thank you sir... sir can you give an example of relational, logical and assignment operator in a switch statement... bcoz I don't know all of them
25th Apr 2017, 6:22 AM
Dexter Torres Gregorio
Dexter Torres Gregorio - avatar