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