test
This commit is contained in:
parent
1f1de1a061
commit
bfe7cc8f88
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user