refresh
This commit is contained in:
parent
8a94f2616d
commit
b4e060411c
@ -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;
|
||||
|
BIN
du2/program.exe
BIN
du2/program.exe
Binary file not shown.
Loading…
Reference in New Issue
Block a user