This commit is contained in:
Matej Hajduk 2025-02-25 14:31:24 +01:00
parent 10fae3b4b5
commit bb2c54c412

View File

@ -40,14 +40,16 @@ int main() {
} }
// P // P
printf("Výherca je súťažiaci ");
for( int i = 0; i < pocet; i++){ for( int i = 0; i < pocet; i++){
if(vysledky[i] == max){ if(vysledky[i] == max){
printf("Výherca je súťažiaci ");
printf("%d ", i+1 ); printf("%d ", i+1 );
printf("ktorý vypil %d pohárov.\n");
} }
} }
printf("ktorý vypil %d pohárov.\n", max);
} }