diff --git a/a1/program.c b/a1/program.c index 6400f1e..e6906d2 100644 --- a/a1/program.c +++ b/a1/program.c @@ -23,8 +23,7 @@ int main() for(int j=0 ;i>0; i--,j++){ 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; } printf("Vysledok je :%.2Lf\n",result);