Update 'du3/program.c'
This commit is contained in:
parent
6e4ceacb32
commit
fafbac8ea3
@ -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;
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user