diff --git a/du2/program b/du2/program index 3a5f254..9842951 100755 Binary files a/du2/program and b/du2/program differ diff --git a/du2/program.c b/du2/program.c index 7ecb590..7363f56 100644 --- a/du2/program.c +++ b/du2/program.c @@ -19,6 +19,14 @@ int main(){ }else{ break; } - } + } + do{ + printf("Súťažiaci č. %d vypil %d pohárovav.\n", results[a], results[a]); + if(a == i - 1){ + printf("Výherca je súťažiaci %d ktorý vypil %d pohárov.\n", max, max); + break; + } + a++; + }while(a < i); return 0; }