4. What does the modulus operator % do ? What will be the result of 7.2 % 2.1 and 8 % 3 ?
Modulus operator returns the remainder when dividend is divided by the divisor. 7.2%2.1 = 0.9 8%3 = 2
Modulus operator returns the remainder when dividend is divided by the divisor. 7.2%2.1 = 0.9 8%3 = 2
Operators operate on data to give values. Arithmetic operators do arithmetic operations. They are