Gallery
Debug 3.1. Keyboard Input with starter code
Share
Explore
Debug 3.1. Keyboard Input with starter code

icon picker
The Task

Activity: Debug 3.1 keyboard.NextLine 🐞

Start Here

A bug report has been has been submitted on this program. The program has a few errors, it should be getting user input for favourite colour and food. Can you help fix it?
Run the program to identify errors.
Refer to the code clips below to help you fix the errors.
Right click on your code and add a comment explaining what was wrong and how you fixed it.

Expected output

What is your favourite colour? Cornflower blue
What is your favourite food? Pizza

Your favourite colour is Cornflower blue
Your favourite food is Pizza
Good luck! 🍀
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.