This commit is contained in:
Rudolf Zambory 2025-02-28 08:34:11 +01:00
parent 10df765862
commit 34be7bad83

View File

@ -13,6 +13,10 @@ int main() {
int r = scanf("%d", &results[i]);
if (r == 1) {
if (results[i] < 0) {
if (i == 0) {
printf("Chyba: Málo platných hodnôt.\n");
return 0;
}
break;
}
value_count++;