Why is the last condition no being met?
package com.codegym.task.task05.task0532;
import java.io.*;
/*
Task about algorithms
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int maximum = 0;
//write your code here
int N = Integer.parseInt(reader.readLine());
if (N>0) {
for (int a = N; a > 0; a--) {
int b = Integer.parseInt(reader.readLine());
if (b > maximum) {
maximum = b;
}
}
}
System.out.println(maximum);
}
}