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