works absolutely fine when checked manually.
not able to get through the condition "Be sure the program displays the maximum of N number"
package com.codegym.task.task05.task0532;
import java.io.*;
import java.util.Scanner;
/*
Task about algorithms
*/
public class Solution { static int count = 3;
static int maximum;
static int b;
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if (n>0){ maximum =sc.nextInt();
for (;count <=n;count ++){
b = sc.nextInt();
maximum =( b>maximum )? b:maximum;
}
//write your cod.e here
System.out.println(maximum); }
else {}
}
}