Very basic beginner Ruby question to do with elsif and ranges [migrated]
- by MattKneale
I've been trying to get to grasps with Ruby (for all of an hour) and this is my first language.
I've got the following code:
var_comparison = 5
print "Please enter a number: "
my_num = Integer(gets.chomp)
if my_num > var_comparison
print "You picked a number greater than 5!"
elsif my_num < var_comparison
print "You picked a number…