Skip to content

Commit 0be5b1f

Browse files
authored
first.rb
1 parent 9e51a95 commit 0be5b1f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

first.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
print "Do you like jokes? (enter 1 for yes, 0 for no): "
2+
answer = Integer(gets)
3+
if (answer == 1)
4+
print "Great! How many programmers does it take to change a light bulb? None, thats a hardware problem!"
5+
elsif (answer == 0)
6+
print "Too bad. Whats the object-oriented way to become wealthy? Inheritance."
7+
else
8+
print "You dont know how to follow directions, do you?"
9+
end

0 commit comments

Comments
 (0)