This commit is contained in:
Denis Landa 2025-02-27 19:10:47 +01:00
parent b905bf87a3
commit 07b4b98269

View File

@ -17,12 +17,12 @@ int main() {
}
if (count == 0) {
printf("Chyba: Malo platnych hodnot.\n");
printf("Chyba: Málo platných hodnôt.\n");
return 1;
}
for (int i = 0; i < count; i++) {
printf("Sutaziaci č. %d vypil %d poharov.\n", i + 1, results[i]);
printf("Súťažiaci č. %d vypil %d pohárov.\n", i + 1, results[i]);
}
int max = results[0];
@ -34,7 +34,7 @@ int main() {
for (int i = 0; i < count; i++) {
if (results[i] == max) {
printf("Vyherca je sutažiaci %d ktory vypil %d poharov.\n", i + 1, results[i]);
printf(" Výherca je súťažiaci %d ktorý vypil %d pohárov.\n", i + 1, results[i]);
}
}