-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1470ca9
commit 2e01e17
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
people = 20 | ||
cats = 30 | ||
dogs = 15 | ||
|
||
|
||
if people < cats | ||
puts "Too many cats! The world is doomed!" | ||
end | ||
|
||
if people > cats | ||
puts "Not many cats! The world is saved!" | ||
end | ||
|
||
if people < dogs | ||
puts "The world is drooled on!" | ||
end | ||
|
||
if people > dogs | ||
puts "The world is dry!" | ||
end | ||
|
||
|
||
dogs += 5 | ||
|
||
if people >= dogs | ||
puts "People are greater than or equal to dogs." | ||
end | ||
|
||
if people <= dogs | ||
puts "People are less than or equal to dogs." | ||
end | ||
|
||
|
||
if people == dogs | ||
puts "People are dogs." | ||
end |