Skip to Content
Learn
Thith Meanth War!
Getting User Input

First, we should print a statement to prompt the user for input, then set that input to a variable using gets.chomp.

Instructions

1.

Use print to ask the user for input.

Declare a variable called user_input and set it equal to the user’s input using gets.chomp.

Folder Icon

Take this course for free

Already have an account?