We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e51a95 commit 0be5b1fCopy full SHA for 0be5b1f
first.rb
@@ -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