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