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); }

6th Mar 2019, 6:34 PM
Shaik Abeedh
Shaik Abeedh - avatar
1 Answer
+ 2
Modulus doesn't work with floats, you must use ints
6th Mar 2019, 6:36 PM
Elva
Elva - avatar