This commit is contained in:
Oleksandr Vyshniakov 2025-03-01 22:43:22 +01:00
parent 413a53f2e3
commit 25cd35ef5c
3 changed files with 6 additions and 5 deletions

Binary file not shown.

View File

@ -5,10 +5,10 @@
int main() {
char input[100];
if (fgets(input, sizeof(input), stdin) != NULL && input[0] == '\n') {
return 0;
}
while (fgets(input, sizeof(input), stdin) != NULL) {
if (input[0] == '\n') {
break;
}
double cislo1;
double cislo2;
@ -19,7 +19,7 @@ int main() {
if (colznakov != 5 || rovno != '=') {
printf("CHYBA\n");
return 0;
continue;;
}
double result2;
@ -55,6 +55,7 @@ int main() {
} else {
printf("ZLE\n");
}
}
return 0;
}

Binary file not shown.