Could you help me to write a method to calculate maximum of N entered numbers?
public class Solution {
public static void main(String[] args) throws Exception {
Scanner sc1 = new Scanner(System.in);
int maximum = 0;
int n = sc1.nextInt();
System.out.println(maximum);
if (n> 0) {
for (int x=0; x<n; x++) {
}
}
}
}
N-entered numbers. Help
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Atakan Isik
8 January 2020, 13:54
0