Aktualizovat „du4/program.c“

This commit is contained in:
Artem Horbunov 2020-04-02 15:54:39 +00:00
parent 11ff395ff1
commit c5b23eecfd

View File

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