From 4c0226e60c7f2836459641d5647cf25f93350bc1 Mon Sep 17 00:00:00 2001 From: Michal Utlak Date: Tue, 27 Feb 2024 17:16:11 +0100 Subject: [PATCH] fix minusove cisla --- cv2/program.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cv2/program.c b/cv2/program.c index 1a077df..1b0053b 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -11,8 +11,7 @@ int main() { } if (cislo < 1) { - printf("Neplatne cislo zadane. Koniec nacitania.\n"); - return 1; + break; } pole[pocetCisel] = cislo;