X890: Jeroo if-then-else syntax

You are writing code using a jeroo named jamie. The following if-then-else statement will not compile because of a syntax error. Fix the error so it compiles, but do not change the meaning of the code in any other way.

Your Answer:

x
 
1
if (jamie.seesFlower(LEFT));
2
{
3
    jamie.turn(LEFT);
4
}
5
else
6
{
7
    jamie.hop();
8
}
9

Feedback

Your feedback will appear here when you check your answer.