0a9428093c
git-subtree-dir: RubyFun git-subtree-mainline:a04a502787
git-subtree-split:b01c682613
15 lines
197 B
Ruby
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
|