Done. Show me yours and I'll show you mine.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Clarification: show me your completed code and I'll show you mine. Or ask a specific question that can't be interpreted as "do it for me".
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
How do I make it so that the coumputer would tell the user if he/she entered a number that was not greater than the previous number entered?
That's more like it! You know what the last number entered was, because it's sitting in n[i - 1] . Just make compare that with the current number, or if i == 0 , skip the test because it's the first number in the list.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
Give it a try and see how it works.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401