Aktualizovat „du4/program.c“
This commit is contained in:
parent
11ff395ff1
commit
c5b23eecfd
@ -10,7 +10,7 @@ int main(){
|
|||||||
printf("CHYBA\n");
|
printf("CHYBA\n");
|
||||||
return -1;
|
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");
|
printf("%s\n", (check == answer) ? "OK" : "ZLE");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user