diff --git a/a1/program.c b/a1/program.c index aecaca0..7492aa2 100644 --- a/a1/program.c +++ b/a1/program.c @@ -4,10 +4,14 @@ int main() { - int i,c; + int i,c,no; double x; long double result=0; scanf("%lF",&x); + if(scanf("%lF",&x)!=1){ + printf("Nepodarilo sa nacitat x\n"); + no=1; + } long double *array; array = (long double*) malloc(10000); for(i=0,c=1;i