diff --git a/du3/program.c b/du3/program.c index a0bb648..03f511c 100644 --- a/du3/program.c +++ b/du3/program.c @@ -43,7 +43,7 @@ int main(){ num+=p*n; } - float num2=(round(num*10))/10; + float num2=(round(num*100))/100; printf("Vysledok je: %.2f\n", num2); return EXIT_SUCCESS;