Изменил(а) на 'du2/program.c'

This commit is contained in:
Vladyslav Korzun 2023-02-22 16:38:54 +00:00
parent 8641b7e874
commit cc2e26c690

View File

@ -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;
}