box-o-sand/RubyFun/round0/question.rb
Dan Buch 0a9428093c Add 'RubyFun/' from commit 'b01c6826131196ba58b5288a3182f2526c89c249'
git-subtree-dir: RubyFun
git-subtree-mainline: a04a502787
git-subtree-split: b01c682613
2013-01-09 23:50:14 -05:00

15 lines
197 B
Ruby

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