From cf1436966a01a4f78e30231d1a1eec00a3692e0c Mon Sep 17 00:00:00 2001 From: ak643du Date: Wed, 28 Feb 2024 13:27:31 +0100 Subject: [PATCH] G --- cv2/program.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cv2/program.c b/cv2/program.c index 0330310..5b67c99 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -9,10 +9,6 @@ int main(){ int input; while (count < FIELD_SIZE) { - if (scanf("%d", &input) != 1) { - printf("Chyba pri nacitavani. Koniec vstupu.\n"); - break; - } if (input < 0) { printf("Ukoncenie zadavania.\n"); break; @@ -23,7 +19,7 @@ int main(){ printf("Vypisane hodnoty:\n"); for (int i = 0; i < count; i++) { - printf("Sutaziaci c. %d vypil %d poharov.\n", i + 1, field[i]); + printf("Sutaziaci č. %d vypil %d pohárov.\n", i + 1, field[i]); } return 0;