Use of Arithmetic Operators
Use of Arithmetic operators in java program
There are some Arithmetic Operators which helps to make a comparison between numbers.
pic- operators' sign |
By the help of this picture, You can identify the proper operator and use it.
The program below may help you to learn how the arithmetic operators can be managed properly.
Output:-
Is 20>25? false
Is 20<25? true
Is 20>=25? false
Is 20<=25? true
Is 20 not equal to 25? true
If you want the code in the editable format then, Please comment down below
Comments
Post a Comment