all answers will be appreciated.
can anyone help me to understand this task please???
You must be signed in to leave a comment
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 .
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.