question crap
This commit is contained in:
parent
fab47f9adf
commit
6cab189a73
14
question.rb
Normal file
14
question.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user