From 0a3ac9c5a68a5bd4ad1210046f1f27cc9ac73880 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sat, 14 Mar 2020 21:00:38 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/a1/program.c b/a1/program.c index 0a8cc28..30055eb 100644 --- a/a1/program.c +++ b/a1/program.c @@ -3,11 +3,11 @@ #include int main() { - float x=0; - float value =0; + double x=0; + double value =0; int count =0; - float arr[50]; - while(scanf("%f",&value)!=EOF){ + double arr[50]; + while(scanf("%lF",&value)!=EOF){ if(isalpha(value)!=0){ return 0; } @@ -23,7 +23,7 @@ int main() for(int i =0;i