This commit is contained in:
Weber 2024-03-28 17:54:01 +00:00
parent 1f1de1a061
commit bfe7cc8f88

View File

@ -11,9 +11,6 @@ int main() {
int cislo1, cislo2, vysledok_zadany; int cislo1, cislo2, vysledok_zadany;
char operacia; char operacia;
while (getchar() != '\n');
if (sscanf(uloha, "%d %c %d = %d", &cislo1, &operacia, &cislo2, &vysledok_zadany) != 4) { if (sscanf(uloha, "%d %c %d = %d", &cislo1, &operacia, &cislo2, &vysledok_zadany) != 4) {
printf("CHYBA\n"); printf("CHYBA\n");
continue; continue;
@ -51,4 +48,4 @@ int main() {
} }
return 0; return 0;
} }