This commit is contained in:
Oleksandr Vyshniakov 2025-02-22 15:38:58 +01:00
parent 8a94f2616d
commit b4e060411c
2 changed files with 0 additions and 4 deletions

View File

@ -27,13 +27,10 @@ int main() {
double cof[maxcoe];
int count = 0;
printf("Zadajte x: ");
if (!read_number(&x)) { //если не может считать
printf("Chyba. Nepodarilo sa nacitat hodnotu");
return 1;
}
printf("Zadajte koeficienty (po jednom na riadok, ukoncite prazdnym riadkom):\n");
while (count < maxcoe) {
double coef; //переменна для хранения считанного коэффициента
@ -44,7 +41,6 @@ int main() {
}
if (sscanf(buffer, "%lf", &coef) != 1) {
printf("Chyba. Nepodarilo sa nacitat koeficient %d.\n", count + 1);
return 1;
}
cof[count] = coef;

Binary file not shown.