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