program.c

This commit is contained in:
Patrik Seman 2023-03-02 15:48:27 +01:00
parent 516a479456
commit 42870fe6ae

View File

@ -4,13 +4,19 @@
int main(){
int i;
int pole[VELKOST_POLA];
for(i=0; i<VELKOST_POLA; i++){
int value = 0;
int max=0;
int value=0;
while(i<VELKOST_POLA){
printf('Zadaj hodnotu: ');
int r = scanf("%d",&value);
pole[i]=r;
if(r==1){
i++;
}
else{
break;
}
}
return 0;
}