// Some more expressions to try // with division and mod // Press Ctrl / to comment and uncomment sections of code // to see what the output would be #include int main(void){ double x = 5; double y = 2; int z = x / y; printf("%d\n", z); // Change z to double // double x = 5; // double y = 2; // double z = x / y; // printf("%.1lf\n", z); // What if x is an int? // int x = 5; // double y = 2; // double z = x / y; // printf("%.1lf\n", z); // mod example // int x = 5; // int y = 2; // int z = x % y; // printf("%d\n", z); return 0; }