Изменил(а) на 'du2/program.c'
This commit is contained in:
parent
8641b7e874
commit
cc2e26c690
@ -12,8 +12,9 @@ int i = 0;
|
|||||||
int max_hodnota = 0;
|
int max_hodnota = 0;
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
int counter1 = 0;
|
int counter1 = 0;
|
||||||
|
if(value > 0){
|
||||||
while(STOP == 1){
|
while(STOP == 1){
|
||||||
if (r == 1 && value < 0){
|
if (r == 1){
|
||||||
counter1++;
|
counter1++;
|
||||||
printf("Súťažiaci č. %d", counter1);
|
printf("Súťažiaci č. %d", counter1);
|
||||||
printf(" vypil %d pohárov.\n",value);
|
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);
|
printf(" ktorý vypil %d pohárov.\n", max_hodnota);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
printf("loh");
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user