15/20 One-Liners


#1

Example for a one - liner

if a < b (you then should do something) puts 'a is less then b'
end


#2

This is what I did but codeacademy wont accept it as a solution.

if 1 < 2 then puts "One is less than two" end

#3

the "One is less than two!" goes before the if statement
"One is less than two!" if 1 < 2

there is also no need for the "end" keyword