This commit is contained in:
Denis Landa 2025-02-27 18:51:27 +01:00
parent bc79f9792c
commit f7b47eea0a

View File

@ -6,8 +6,6 @@ int main() {
int count = 0;
int value;
printf("Zadajte výsledky súťaže (max 50 hodnôt, ukončite EOF alebo neplatným číslom):\n");
while (scanf("%d", &value) == 1) {
if (value < 1) {
break;
@ -37,7 +35,7 @@ int main() {
printf("Výherca je:\n");
for (int i = 0; i < count; i++) {
if (results[i] == max) {
printf("Súťažiaci %d ktorý vypil %d pohárov.\n", i + 1, results[i]);
printf("Vyherca je Súťažiaci %d ktorý vypil %d pohárov.\n", i + 1, results[i]);
}
}