Изменить 'a1/program.c'
This commit is contained in:
parent
3052c81724
commit
cb180dd51a
@ -23,8 +23,7 @@ int main()
|
|||||||
for(int j=0 ;i>0; i--,j++){
|
for(int j=0 ;i>0; i--,j++){
|
||||||
result+=(long double)(array[j]*pow(x,i-1));
|
result+=(long double)(array[j]*pow(x,i-1));
|
||||||
}
|
}
|
||||||
|
if(result>40000 && result!=(long long )(result)){
|
||||||
if(result>40000 && result!=(long long )(result)){
|
|
||||||
result-=0.01;
|
result-=0.01;
|
||||||
}
|
}
|
||||||
printf("Vysledok je :%.2Lf\n",result);
|
printf("Vysledok je :%.2Lf\n",result);
|
||||||
|
Loading…
Reference in New Issue
Block a user