0
Guys i was tryinto
Write a program that: 1. reads a number N (must be greater than 0) from the console 2. reads N numbers from the console 3. Displays the maximum of the N entered numbers. 4. It should works well for negative numbers too. 5.if N is 0 it should not display anything. I could not do no 5 plis help. https://code.sololearn.com/clGXmBiWQDOB/?ref=app
2 RĂ©ponses
0
stephen haokip If N is 0 just print the message and return the program using return statement like this
if (N == 0) {
return;
}
0
" it should not display anything."
int i = Integer.parseInt(s);
if (i>0) {