question crap

This commit is contained in:
Dan Buch 2009-06-11 22:07:33 -04:00
parent fab47f9adf
commit 6cab189a73

14
question.rb Normal file
View File

@ -0,0 +1,14 @@
def has_a_flavor?()
puts 'pick a number'
num = gets().chomp().to_i
if num % 2 != 0
puts 'NO'
else
puts 'YAS'
end
end
if __FILE__ == $0
has_a_flavor?()
end