From 1cfec89bcd53eae9f109436d4952f6f0dcedfe2a Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sun, 15 Mar 2020 18:16:11 +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 b4b9774..278dc72 100644 --- a/a1/program.c +++ b/a1/program.c @@ -8,8 +8,8 @@ int main() int count =0; long double arr[50]={0}; - scanf("%lf",&x); - if(isalpha(x)!=0){ + + if(scanf("%lf",&x)!=1){ printf("Nepodarilo sa nacitat x\n"); return 0; }