This commit is contained in:
Oleksandr Vyshniakov 2025-10-01 10:26:53 +02:00
parent dba9c61961
commit 74352305e3
2 changed files with 5 additions and 1 deletions

BIN
du2/program Executable file

Binary file not shown.

View File

@ -25,8 +25,12 @@ while (1) {
if (fgets(line, sizeof(line), stdin)==NULL) {
break;
}
scanf();
if (scanf(line, "%f", &list[n].prize) !=1) {
break;
}
n++;
}
return n;
}