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++; }