3. Displays the maximum of the N entered numbers.
does this mean find the largest number from the numbers entered?
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;
int n = Integer.parseInt(reader.readLine());
for(int i = 0; i < n; i++){
maximum += Integer.parseInt(reader.readLine());
}
//write your code here
System.out.println(maximum);
}
}