pvjc22/du2/program.c
Yaroslav Orlianskyi 4b1bd12a4e SAD
2022-03-09 13:58:05 +01:00

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;
}