WHat could go wrong?
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
while(true){
int N=Integer.parseInt(reader.readLine());
if(N<=0)
break;
maximum=maximum>N?maximum:N;
}
System.out.println(maximum);
}
}