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