Update 'du3/program.c'

This commit is contained in:
Anzhelika Nikolaieva 2023-03-07 22:36:38 +00:00
parent 6e4ceacb32
commit fafbac8ea3

View File

@ -42,18 +42,19 @@ x = strtof(start, &finish);
start = finish;
int f = 0;
long double n = 0;
for(int c = 0; c < kofi; c++){
long double d = 1; f = 0;
f = strtof(start, &finish);
start = finish;
d = dop(x,(kofi-c)-1);
d=dop(x,(kofi-c)-1);
n+=d*f;
}
n = round(n*100)/100;
printf("Vysledok je: %.2Lf\n", n);
return EXIT_SUCCESs;
return EXIT_SUCCESS;
}