When we are working with modulus operator, 2 arguments are required and bo.
We can’t apply it for float data type.
In implementation when we require to calculate remainder value of float data type then go for f mod ( ) or F mod ( ) function which is declased in < stalib.h>.
Value = F mod (n, d);
// return type is double data byte
Value= F mod (n, d);
// return type is long double data type
A= 158%10; 8
A= 158%10; 15
A= 104%10; 4
A= 1048/1o; 10
A= 86% 10; 6
A= 23% 10; 3
A= 23/10; 2
% 10 always provides last digits of input value.
Divided by 10 always removes last digit of input values.