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
|