For what for variable "N" that entered by keyboard and what she is doing? Why we dont show that variable "x" must be greater than 0?
ANSWER THE MY QUESTIONS PLS
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int count = 0;
int maximum = Integer.MIN_VALUE;
int N = Integer.parseInt(br.readLine());
while (count < N)
{
int x = Integer.parseInt(br.readLine());
if(x > maximum)
maximum = x;
count++;
}
System.out.println(maximum);
WHY THIS SOLUTION IS TRUE? SAY ME PLS :(
Archived
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
12 November 2019, 16:45
did you resolve this?
0