funguje
This commit is contained in:
parent
881308c10e
commit
7233a5de71
@ -6,6 +6,7 @@
|
||||
int main(){
|
||||
|
||||
int value = 0;
|
||||
int count = 0;
|
||||
|
||||
int pole[VELKOST_POLA];
|
||||
memset(pole,0,VELKOST_POLA*(sizeof(int)));
|
||||
@ -22,11 +23,11 @@ int main(){
|
||||
max_hodnota = pole[idx];
|
||||
}
|
||||
idx++;
|
||||
value++;
|
||||
count++;
|
||||
}
|
||||
|
||||
if (value==0){
|
||||
printf("Error\n");
|
||||
printf("Chyba: Málo platných hodnôt.\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user