25 lines
329 B
C
25 lines
329 B
C
#include <stdio.h>
|
|
#include <stdlib.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;
|
|
}
|
|
|
|
|