Created
January 7, 2016 10:32
-
-
Save krokrob/38919e3d73ed3fb484bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#condition | |
puts "Quelle température fait-il?" | |
print ">" | |
temp = gets.chomp.to_i | |
# def is_cool?(temp, ceil) | |
# return temp <= ceil | |
# end | |
# puts is_cool?(temp, 24) | |
#puts "il fait chaud" if temp > 19 | |
answer = temp > 19 ? "il fait chaud" : "il fait frais" | |
puts answer | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment