Skip to content

Commit

Permalink
after elsif.rb correction and Readme.md correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthikeyan A K committed Aug 27, 2012
1 parent 8e673bf commit 9c55a62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
I Love Ruby
------------

Hello Folks. These are example programs that are in my hobby ruby programing book I Love Ruby, currently hosted here https://www.dropbox.com/s/qqaovgwgca3f2qx/I%20Love%20Ruby%202012%20Beta%203%20.pdf?m
Hello Folks. These are example programs that are in my hobby ruby programing book I Love Ruby, currently hosted here http://is.gd/r2012
5 changes: 3 additions & 2 deletions elsif.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# elsif.rb
# finds the greatest of three numbers

a,b,c = 3,7,5

if a > b and a > c
if a >= b and a >= c
puts "a = #{a} is greatest"
elsif b > c and b > a
elsif b >= c and b >= a
puts "b = #{b} is greatest"
else puts "c = #{c} is greatest"
end

0 comments on commit 9c55a62

Please sign in to comment.