Skip to content

Commit

Permalink
added if then else example
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthikeyan A K committed Mar 22, 2017
1 parent bea4124 commit 26e19ea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions if_then_else.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#if_then_else.rb

number = 42

if number % 2 == 0
then
puts "Even"
else
puts "Odd"
end

0 comments on commit 26e19ea

Please sign in to comment.