diff --git a/a1/program.c b/a1/program.c index c902da3..b03d3d0 100644 --- a/a1/program.c +++ b/a1/program.c @@ -20,9 +20,9 @@ int main() value+=arr[i]*pow(x,count-1-i); } - //if(value>=40000){ - // value =((int)(value*100 - 0.5)/100.00); - //} + if(value>=40000&&value<=1000000){ + value =((int)(value*100 - 0.5)/100.00); + } printf("Vysledok je :%.2lf\n",value);