Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Arithmetic Operators
- Here, y = 5;
- + Addition (x = y + 2 => 7)
- - Subtraction (x = y - 2 => 3)
- * Multiplication (x = y * 2 => 10)
- / Division (x = y / 2 => 2.5)
- ~/ Division (x = y ~/ 2 => 2)
- % Modulus (remainder) (x = y % 2 => 1)
- ++ Increment (x = ++y => y = 6 | x = 6)
- (x = y++ => y = 6 | x = 5)
- -- Decrement (x = --y => y = 4, x = 4)
- (x = y-- => y = 4, x = 5)
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement