From e5be159ad407f92a6b5da8bee6bb621a25d5a137 Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sat, 11 Feb 2012 12:21:58 -0500 Subject: [PATCH] Back-filling ex3 so that I can actually talk about it at the next meeting --- ex3.rb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ex3.rb diff --git a/ex3.rb b/ex3.rb new file mode 100644 index 0000000..4392bf3 --- /dev/null +++ b/ex3.rb @@ -0,0 +1,23 @@ +puts "I will now count my chickens:" + +puts "Hens", 25 + 30 / 6 +puts "Roosters", 100 - 25 * 3 % 4 + +puts "Now I will count the eggs:" + +puts 3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + 6 + +puts "Is it true that 3 + 2 < 5 - 7?" + +puts 3 + 2 < 5 - 7 + +puts "What is 3 + 2?", 3 + 2 +puts "What is 5 - 7?", 5 - 7 + +puts "Oh, that's why it's false." + +puts "How about some more." + +puts "Is it greater?", 5 > -2 +puts "Is it greater or equal?", 5 >= -2 +puts "Is it less or equal?", 5 <= -2