Cv2 commit
This commit is contained in:
parent
47d607adf0
commit
6e52173049
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user