This commit is contained in:
Yaroslav Orlianskyi 2022-03-09 15:24:44 +01:00
parent 7dfc6f9fa3
commit 146182ee18

View File

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