Cv2 commit

This commit is contained in:
Kozar 2024-02-28 14:36:14 +01:00
parent 47d607adf0
commit 6e52173049

View File

@ -13,12 +13,15 @@ int main(){
break;
}
if (input < 0) {
printf("Chyba: Málo platných hodnôt.\n");
break;
}
field[count] = input;
count++;
}
if (count < 2) {
printf("Chyba: Málo platných hodnôt.\n");
return 0;
}
for (int i = 0; i < count; i++) {
printf("Súťažiaci č. %d vypil %d pohárov.\n", i + 1, field[i]);