program.c
This commit is contained in:
parent
516a479456
commit
42870fe6ae
@ -4,13 +4,19 @@
|
||||
int main(){
|
||||
int i;
|
||||
int pole[VELKOST_POLA];
|
||||
for(i=0; i<VELKOST_POLA; i++){
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user