This commit is contained in:
Yaroslav Orlianskyi 2022-03-09 13:59:22 +01:00
parent 4b1bd12a4e
commit 2da4cee81e
2 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

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