0
I get some binary error. I don't understand please explain
#include <stdio.h> int main() { float i=1,j=2,k; k=i%j; printf("%f",k); }
1 Answer
+ 2
Modulus doesn't work with floats, you must use ints
#include <stdio.h> int main() { float i=1,j=2,k; k=i%j; printf("%f",k); }