+ 1
Your Mom , modulo operation can be applied only for integers.
+ 1
You can't use the modulo with a floating point number.
+ 1
Your Mom , yes cast it to integer =>(int) a %(int) b;
+ 1
Your Mom , look at the code.
https://code.sololearn.com/cNihJpIjQgtw/?ref=app
+ 1
use "fmod()" from the math.h / cmath header file .