From 6cab189a737f593d1e257b6683922881b941486d Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Thu, 11 Jun 2009 22:07:33 -0400 Subject: [PATCH] question crap --- question.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 question.rb diff --git a/question.rb b/question.rb new file mode 100644 index 0000000..582b201 --- /dev/null +++ b/question.rb @@ -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