From 636badf2ca5320b093aad8bfeae06594e564474d Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sun, 15 Mar 2020 18:03:45 +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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/a1/program.c b/a1/program.c index ab559f8..1b1d3e6 100644 --- a/a1/program.c +++ b/a1/program.c @@ -9,9 +9,10 @@ int main() long double arr[50]={0}; scanf("%lf",&x); while(scanf("%Lf",&value)!=EOF){ - //if(isalpha(value)!=0){ - // return 0; - //} + if(isdigit(value)==0){ + printf("Nepodarilo sa nacitat x\n"); + return 0; + } arr[count]=value; count++; }