2023-03-02 14:33:37 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stlib.h>
|
|
|
|
#define VELKOST_POLA 52
|
|
|
|
int main(){
|
|
|
|
int i;
|
|
|
|
int pole[VELKOST_POLA];
|
2023-03-02 14:48:27 +00:00
|
|
|
int max=0;
|
|
|
|
int value=0;
|
|
|
|
while(i<VELKOST_POLA){
|
2023-03-02 14:33:37 +00:00
|
|
|
printf('Zadaj hodnotu: ');
|
|
|
|
int r = scanf("%d",&value);
|
|
|
|
pole[i]=r;
|
2023-03-02 14:48:27 +00:00
|
|
|
if(r==1){
|
|
|
|
i++;
|
2023-03-02 14:33:37 +00:00
|
|
|
}
|
2023-03-02 14:48:27 +00:00
|
|
|
else{
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2023-03-02 14:33:37 +00:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|