25 lines
328 B
C
25 lines
328 B
C
#include <stdio.h>
|
|
#include <stlib.h>
|
|
#define VELKOST_POLA 52
|
|
int main(){
|
|
int i;
|
|
int pole[VELKOST_POLA];
|
|
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;
|
|
}
|
|
|
|
|