diff --git a/du4/program.c b/du4/program.c index 54aa8cb..71165ce 100644 --- a/du4/program.c +++ b/du4/program.c @@ -10,7 +10,7 @@ int main(){ printf("CHYBA\n"); return -1; } - int check = (action == '/') ? num1 / num2 : (action == '*') ? num1 * num2 : (action == '+') ? num1 + num2 : num1 - num2; + float check = (action == '/') ? num1 / num2 : (action == '*') ? num1 * num2 : (action == '+') ? num1 + num2 : num1 - num2; printf("%s\n", (check == answer) ? "OK" : "ZLE"); }