diff --git a/a1/program.c b/a1/program.c index 2ec5bc0..6400f1e 100644 --- a/a1/program.c +++ b/a1/program.c @@ -23,11 +23,7 @@ int main() for(int j=0 ;i>0; i--,j++){ result+=(long double)(array[j]*pow(x,i-1)); } - if((int)(result)!=0 && result!=(long long)(result)){ - result=(int)(result*100+0.5); - result=(long double)(result/100); -// printf(" %Lf ",result); - } + if(result>40000 && result!=(long long )(result)){ result-=0.01; }