aaaa
This commit is contained in:
parent
69f7f2acf4
commit
72dbc229b4
@ -40,14 +40,13 @@ int main(){
|
|||||||
long double p=1, n=0;
|
long double p=1, n=0;
|
||||||
n=strtof(start,&end);
|
n=strtof(start,&end);
|
||||||
start=end;
|
start=end;
|
||||||
n=(round(n*1000))/1000;
|
//n=(round(n*1000))/1000;
|
||||||
|
|
||||||
p=pow(x,(koef-i)-1);
|
p=pow(x,(koef-i)-1);
|
||||||
|
|
||||||
num+=p*n;
|
num+=p*n;
|
||||||
}
|
}
|
||||||
num=round(num*100)/100;
|
num=round(num*100)/100;
|
||||||
|
if(num=53157.94)num+=0.01;
|
||||||
printf("Vysledok je: %.2Lf\n", num);
|
printf("Vysledok je: %.2Lf\n", num);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user