The right answer should be 6, right? But this lesson consider 5 as true anyway.
And now the code won't work.
I think this solution broke the verification process of this lesson.
The answer is wrong but why the lesson consider it right?
Archived
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Robert
19 July 2019, 21:26
The first number you enter is how many total numbers you will be reading into your numbers array. You type in 1. So you are only reading 1 number into your numbers array. as such, when you type 5, your "total" number has been reached and your program starts to look for the maximum number. It never even reads your 6 input because you are only saying you wanted to enter 1 number. If you change 1 to 3, then it would add 5, 6 and 2 to your numbers array and 6 would be output.
0