A Modulus operator gives the remainder value. The result of x%y is obtained by (x-(x/y)*y). This operator is applied only to integral operands and cannot be applied to float or double.
If you have the better answer, then send it to us. We will display your answer after the approval.