box-o-sand/oldstuff/RubyFun/round0/question.rb

15 lines
197 B
Ruby
Raw Normal View History

2009-06-12 02:07:33 +00:00
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