From d160866e90305bdeff31586576587bd696442678 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sun, 15 Mar 2020 17:44:41 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/a1/program.c b/a1/program.c index b03d3d0..104c162 100644 --- a/a1/program.c +++ b/a1/program.c @@ -4,7 +4,7 @@ int main() { double x=0; - double value =0; + long double value =0; int count =0; double arr[50]={0}; scanf("%lf",&x); @@ -23,7 +23,7 @@ int main() if(value>=40000&&value<=1000000){ value =((int)(value*100 - 0.5)/100.00); } - printf("Vysledok je :%.2lf\n",value); + printf("Vysledok je :%.2Lf\n",value); return 0;