diff --git a/a1/program.c b/a1/program.c index 961695c..6d920bb 100644 --- a/a1/program.c +++ b/a1/program.c @@ -24,7 +24,7 @@ int main() result=(long double)(result/100); result=round(result*1000)/1000; } - printf("Vysledok je :%Lf\n",result); + printf("Vysledok je :%.2Lf\n",result); free(array); return 0; }