What is wrong in the code?
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 n = Integer.parseInt(reader.readLine());
int maximum = n;
//write your code here
while (n>0){
n = Integer.parseInt(reader.readLine());
if (n> maximum) maximum = n;
System.out.println(maximum);
}
}
}