Обновить cv3/program.c

This commit is contained in:
Yevhen Kozirovskyi 2024-10-17 16:41:23 +00:00
parent e713389776
commit 8cfcf69563

View File

@ -42,7 +42,7 @@ int main() {
StEk stek;
inicStEk(&stek);
char bufer[256];
while (fgets(bufer, sizeof(bufer), stdin)) {
while (fgets(bufer, sizeof(bufer), stdin) != NULL) {
char* konec;
double chislo = strtod(bufer, &konec);
if (*konec == '\n' && *bufer != '\n' && *bufer != ' ') {
@ -104,5 +104,6 @@ int main() {
}
printf("\n");
}
printf("no input\n");
return 0;
}