Cv2 commit

This commit is contained in:
Kozar 2024-02-28 14:30:10 +01:00
parent 16ba1cb4f4
commit 3de30c9468

View File

@ -7,14 +7,13 @@ int main(){
int count = 0;
int max_num = 0;
int input;
int winner_index = 0;
while (count < FIELD_SIZE) {
if (scanf("%d", &input) != 1) {
break;
}
if (input < 0) {
printf("Chyba: Málo platných hodnôt.\n")
printf("Chyba: Málo platných hodnôt.\n");
break;
}
field[count] = input;
@ -36,4 +35,4 @@ int main(){
}
return 0;
}