Update 'du2/program.c'
This commit is contained in:
parent
3f0c3eeeca
commit
00d66d61be
@ -18,7 +18,7 @@ int main(){
|
|||||||
}
|
}
|
||||||
struct Winner max={0,0};
|
struct Winner max={0,0};
|
||||||
for(int j=0;j<i;j++){
|
for(int j=0;j<i;j++){
|
||||||
printf("Súťažiaci č.%d vypil %d pohárov.\n",j+1,drinks_counter[j]);
|
printf("Súťažiaci č. %d vypil %d pohárov.\n",j+1,drinks_counter[j]);
|
||||||
if(drinks_counter[j]>max.drinks){
|
if(drinks_counter[j]>max.drinks){
|
||||||
max.drinks=drinks_counter[j];
|
max.drinks=drinks_counter[j];
|
||||||
max.position=j+1;
|
max.position=j+1;
|
||||||
|
Loading…
Reference in New Issue
Block a user