Menu

Input Validation - 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 18
1. Keep asking for a username until one is entered, then display a welcome message that includes that username.
When the input is
alice
it should print
Welcome alice

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