From 150a09d6ea881001a088f9174142534f7c055ac1 Mon Sep 17 00:00:00 2001 From: Bohdan Yanchyk Date: Sun, 15 Mar 2020 18:26:10 +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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/a1/program.c b/a1/program.c index ad824db..ed2774d 100644 --- a/a1/program.c +++ b/a1/program.c @@ -14,7 +14,10 @@ int main() return 0; } long double r =0; - while((r=scanf("%Lf",&value)!=EOF)&&r==1){ + while((r=scanf("%Lf",&value)!=EOF)){ + if(r!=1){ + break; + } arr[count]=value; count++; }