From 085d44f4be043549b33fff2ba3e4875172fe377c Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sun, 15 Mar 2020 17:45:29 +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 104c162..825dacf 100644 --- a/a1/program.c +++ b/a1/program.c @@ -8,11 +8,11 @@ int main() int count =0; double arr[50]={0}; scanf("%lf",&x); - while(scanf("%lf",&value)!=EOF){ + while(scanf("%Lf",&value)!=EOF){ if(isalpha(value)!=0){ return 0; } - arr[count]=value; + arr[count]=(double)value; count++; } value=0;