This commit is contained in:
Oleksandr Vyshniakov 2025-02-21 13:03:53 +01:00
parent 7cc282f0c9
commit 045bbff402
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -15,12 +15,12 @@ int main() {
} }
if (count == 0) { if (count == 0) {
printf("Chyba. Malo platnych hodnot.\n"); printf("Chyba: Málo platných hodnôt.\n");
return 1; return 1;
} }
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
printf("Sutaziaci c. %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_value = results[0]; int max_value = results[0];
@ -31,7 +31,7 @@ int main() {
} }
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
if (results[i] == max_value) { if (results[i] == max_value) {
printf("Vyherca je sutaziaci %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]);
} }
} }
return 0; return 0;