diff --git a/du2/program b/du2/program new file mode 100755 index 0000000..eaa9129 Binary files /dev/null and b/du2/program differ diff --git a/du2/program.c b/du2/program.c index 1b5d64d..dbe4dab 100644 --- a/du2/program.c +++ b/du2/program.c @@ -10,18 +10,18 @@ int main(){ int drinks_counter[VELKOST_POLA]; int i=0; while(imax.drinks){ max.drinks=drinks_counter[j]; - max.position=j; + max.position=j+1; } } printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n",max.position,max.drinks);