This commit is contained in:
Yaroslav Orlianskyi 2022-03-09 15:18:12 +01:00
parent db03f88f81
commit d659721093

View File

@ -10,7 +10,9 @@ int main(){
while(1){
int value = 0;
int r = scanf("%d",&value);
if (r == 1 && r != EOF){
if(r == EOF)
break;
if (r == 1){
continue;
results[i] = value;
if(max < results[i]){