25 lines
347 B
C
25 lines
347 B
C
#include <stdio.h>
|
|
#define VELKOST_POLA 50
|
|
|
|
int main(){
|
|
int results[VELKOST_POLA];
|
|
int max;
|
|
//int value = 0;
|
|
int i = 0;
|
|
int a = 0;
|
|
while(1){
|
|
int value = 0;
|
|
int r = scanf("%d",&value);
|
|
if (r == 1){
|
|
results[i] = value;
|
|
max = results[0];
|
|
if(max < results[i])
|
|
max = results[i];
|
|
i++;
|
|
}else{
|
|
break;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|