Menu

Selection - Spot the Bug

Each program has one mistake. Tap the line where the mistake is, then choose the change to that line that makes the program work.

Program 1 of 32
1. Print You can ride when the age is at least 12 and the height is at least 140, print Too short when the age is fine but the height is under 140, and print Too young when the age is under 12.
When the input is
14
140
it should print
You can ride

Step 1: tap the line where the mistake is.

Log in or sign-up to find the bugs



Don't have a login?

You can still revise this topic