Saturday, 8 September 2012

Arithmetic Operators










Operator

What it does?

+
Addition
-
Subtraction. This operator can also be used as unary operator. In this case, it negates the sign of the number. For example, if variable A contains –10 then –A will result in 10(positive 10).
/
Division
*
Multiplication
Mod
Modulus. Returns the remainder of the division.
\
Integer Division. Returns only integer portion of the quotient.

No comments:

Post a Comment