Documente Academic
Documente Profesional
Documente Cultură
Operator x+y x-y x*y x/y x%y -x a.b Name Addition Subtraction Multiplication Division Modulus Negation Concatenation Description Sum of x and y Difference of x and y Product of x and y Quotient of x and y Example 2+2 5-2 5*2 15 / 5 5%2 Remainder of x divided by 10 % 8 y 10 % 2 Opposite of x -2 Concatenate two strings "Hi" . "Ha" Result 4 3 10 3 1 2 0 HiHa
Greater than Less than Greater than or equal to Less than or equal True if x is less than or equal to y to
x or y
Or
x xor y
Xor
x && y
And
x || y
Or
!x
Not