+ 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
1 Resposta
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