From 4973232eb63674eae8b35c639d00e56da06a4605 Mon Sep 17 00:00:00 2001 From: ak643du Date: Thu, 22 Feb 2024 14:42:14 +0100 Subject: [PATCH] 1 --- cv2/program.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cv2/program.c b/cv2/program.c index 94213d4..d4ef6a8 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -7,12 +7,7 @@ int main(){ int count = 0; int highest = 0; - int value = 0; - int r = scanf("%d",&value); - if (r == 1){ - printf("Úspešne som načítal hodnotu %d\n",value); - } - else{ - printf("Načítanie sa nepodarilo. V premennej value ostala pôvodná hodnota. \n"); - } + int r = scanf("%d", &field); + printf("Súťažiaci č. %d vypil %d pohárov.\n",i+1,results[i]); + }