all answers will be appreciated.
can anyone help me to understand this task please???
Resolved
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Gellert Varga
26 May 2020, 12:53
The first inputted "N" means the number of the subsequent elements (the quantity of the following numbers).
So, for example if this is the inputlist: 3, 67, 89, 12,
then it means: we have these 3 numbers: 67, 89, 12.
The sixth requiremet says: "The program should not display anything if N is less than or equal to 0."
So, this first entered "N" can be even zero! Or negative, too.
But zero piece element or negative piece is meaningless, therefore in this case the requirement is: "the program should not display anything."
Important!!
We could have even such an input list:
4, -6, -2, -3, -5 .
In this case the output should be equal to -2 .
0
Ashish RajAnand
26 May 2020, 07:36
reads a number N (must be greater than 0) from the console
means that number of input you want to enter ftom keyboard.
let N=4
1,2,3,5
N=7
1,2,3,4,5,6,7
Displays the maximum of the N entered numbers.
0