Arithmetic Operator

Arithmetic operators are special mathematical symbol which do all arithmetical calculation of the programs. Following table display the operators and their works:
Name of operators Symbol works example
Addition operator+Add the numberssum=7+8+1=16
Subtract operator-Subtraction of numberssub=100-50=50
Multiply operator*Multiple of numbersmuti=8*9=72
Modulus operator%Find the reminder of numbersmod=45%40=5
Division operator/Find the division of numbersdiv=45/40=1

No comments:

Post a Comment