12. Loops and Arrays II


#1

Please help! This is my code, everything looks good but I keep getting an error message.
I’ve been stuck for an hour! :frowning:


#2

The error message points out pretty clearly what your program does wrong.

To start reasoning about the problem you have to begin by acknowledging what your program does differently from what it should. You say everything looks fine, but it says right there in the error message what your program should be doing differently.


#3

You wasted so much time typing this. I feel bad for you :slight_smile:

Good for me, I solved the problem by myself. My part was written right, I just shouldn’t have finished the semicolon in line 2. If I followed “the error message” as you suggested the problem wouldn’t have been solved.

All the best!


#4

lovely

However, these things can’t always be found by staring. A bit of reasoning and narrowing down has a more consistent result, especially as the amount of code increases.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.