From 13943cedd8d006a4fb12e7cf206d0231204faaa4 Mon Sep 17 00:00:00 2001 From: Pavlo Tverdyi Date: Thu, 19 Mar 2020 13:41:58 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20'a1/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- a1/program.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);