From cc2e26c690baf1e26b79ec5535547b294dfde19f Mon Sep 17 00:00:00 2001 From: Vladyslav Korzun Date: Wed, 22 Feb 2023 16:38:54 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'du2/program.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- du2/program.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/du2/program.c b/du2/program.c index db04f82..5d4ac90 100644 --- a/du2/program.c +++ b/du2/program.c @@ -12,8 +12,9 @@ int i = 0; int max_hodnota = 0; int counter = 0; int counter1 = 0; +if(value > 0){ while(STOP == 1){ -if (r == 1 && value < 0){ +if (r == 1){ counter1++; printf("Súťažiaci č. %d", counter1); printf(" vypil %d pohárov.\n",value); @@ -40,6 +41,10 @@ printf("Výherca je súťažiaci %d", counter); printf(" ktorý vypil %d pohárov.\n", max_hodnota); } +} +} +else{ +printf("loh"); } return 0; }