diff --git a/du3/program.c b/du3/program.c index e87a1cf..d3b71e9 100644 --- a/du3/program.c +++ b/du3/program.c @@ -7,7 +7,7 @@ int main(){ char pol[SIZE]; memset(pol,'\0',SIZE); - pol[SIZE]='\0'; + //pol[SIZE]='\0'; int ch=0; @@ -17,37 +17,41 @@ int main(){ pol[idx]=ch; } - int koef=-1; + /*for(int i=0; i0;idx--)p*=x; + p=pow(x,(koef-i)-1); num+=p*n; } - - num=round(num*100)/100; + //num=round(num*100)/100; - printf("Vysledok je: %.2f\n", num); + printf("%.2Lf\n", num); return EXIT_SUCCESS; } +