From 73776adc2633024ce65fae7943d88543f2dc3a0a Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sun, 15 Mar 2020 17:43:39 +0000 Subject: [PATCH] =?UTF-8?q?Aktualizovat=20=E2=80=9Ea1/program.c=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a1/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/a1/program.c b/a1/program.c index c902da3..b03d3d0 100644 --- a/a1/program.c +++ b/a1/program.c @@ -20,9 +20,9 @@ int main() value+=arr[i]*pow(x,count-1-i); } - //if(value>=40000){ - // value =((int)(value*100 - 0.5)/100.00); - //} + if(value>=40000&&value<=1000000){ + value =((int)(value*100 - 0.5)/100.00); + } printf("Vysledok je :%.2lf\n",value);