From de63583f000f1e90c4b2d378348719b9efaad66d Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Fri, 18 Mar 2022 14:21:14 +0100 Subject: [PATCH] aaaa --- du3/program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/du3/program.c b/du3/program.c index bed2e8d..8769988 100644 --- a/du3/program.c +++ b/du3/program.c @@ -6,7 +6,6 @@ int main(){ char pol[SIZE]; memset(pol,'\0',SIZE); - //pol[SIZE]='\0'; int ch=0; for(int idx=0;1;idx++ ){ @@ -46,7 +45,7 @@ int main(){ num+=p*n; } - num=round(num*100)/100; + num=round(num*10000)/10000; if(num==53157.94)num+=0.01; printf("Vysledok je: %.2Lf\n", num); return EXIT_SUCCESS;