diff --git a/du2/program b/du2/program index 5cc081a..8b16f7b 100755 Binary files a/du2/program and b/du2/program differ diff --git a/du2/program.c b/du2/program.c index 51ea535..f66900d 100644 --- a/du2/program.c +++ b/du2/program.c @@ -10,7 +10,7 @@ int main(){ while(1){ int value = 0; int r = scanf("%d",&value); - if (value == 1 && value > 0){ + if (r == 1 && value > 0){ results[i] = value; if(max < results[i]){ max = results[i];