First Ruby Program
Learn to create and execute the first Ruby program.
Problem solving with Ruby
The basic tools for understanding the flow and the results of simple programs are
Note: We can rerun a program as many times as we want, to try outputs for different inputs or values of variables.
In Ruby, we use gets
for input (to read a value from the user).
Hello World
It’s time to write our first program in Ruby, which will simply display the message “Hello World!”
on the screen.
Create a free account to view this lesson.
Continue your learning journey with a 14-day free trial.
By signing up, you agree to Educative's Terms of Service and Privacy Policy