From 57256ab102be4ed7ac7947811012edb1ddcbf65a Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Thu, 17 Mar 2022 21:04:57 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'du3/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du3/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;