diff --git a/du3/program.c b/du3/program.c index 6960dc4..f1352fd 100644 --- a/du3/program.c +++ b/du3/program.c @@ -42,8 +42,8 @@ int main(){ num+=p*n; } - - num=round(num*100)/100; + + num=(round(num*100))/100; printf("Vysledok je: %.2f\n", num); return EXIT_SUCCESS;