Изменить 'a1/program.c'

This commit is contained in:
Pavlo Tverdyi 2020-03-17 13:54:47 +00:00
parent 672f4ec4a4
commit 7bbffa9ae8

View File

@ -20,7 +20,7 @@ int main()
result+=(long double)(array[j]*pow(x,i-1)); result+=(long double)(array[j]*pow(x,i-1));
} }
// if(result>=10000&&result<1000000000000){ // if(result>=10000&&result<1000000000000){
result=((int)(result*100-0.5)/100); result=((int)(result*100+0.5)/100);
// } // }
printf("Vysledok je :%.2Lf\n",result); printf("Vysledok je :%.2Lf\n",result);
free(array); free(array);