After hours of trying I think this is a good basic setup for how the problem is supposed to be solved. If someone can walk me through how to complete it that would be awesome!
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 max = 0;
//write your code here
if (N>0) {
for (int i = 1; i <= N; i++) {
}
System.out.println(max);
}
}
}