0_0_25727432_23511.c: In function 'main': 0_0_25727432_23511.c:10:12: error: invalid operands to binary % (have 'double' and 'int') switch(r%10) { ^ 0_0_25727432_23511.c:25:6: error: expected ':' before 'printf' printf("E\n"); ^