Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKieran Wallser
3,008 PointsUsing comparion operators, test whether the number 2 is less than the number 3. (We know, it is, but see if you can expr
number = 2 puts "#{number} is less than 3." if number < 3
answer = 5 puts "#{answer} is greater than 6." if answer > 6
what have i done wrong i keep get error msg
number = 2
puts "#{number} is less than 3." if number < 3
answer = 5
puts "#{answer} is greater than 6." if answer > 6
2 Answers
Adam N
70,280 Pointsput 2 < 3
put 5 > 6
You just need to compare one number to the other, and output it to the screen.
Fradely Dilone
24,037 Pointsputs 2 < 3
puts 5 > 6