Basic

Operators

views

8:30
Now let us see how to give commands to solve simple arithmetic sums. We are going to use the symbols as shown in the table. These are called arithmetic operators. There is one more operator available in arithmetic operators called modulus. This operator can be used only when the variables are of integer type. The symbol for modulus is %. If we say x%y, then the remainder when x is divided by y is given as the answer.