Created
August 4, 2016 00:02
-
-
Save MattPorto/be91dd4ed7fabc4448951077324f6ae5 to your computer and use it in GitHub Desktop.
The same code of Unit Test Study without the several things for the test works
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
def count(i) | |
if i % 35==0 | |
puts "Nama Team" | |
elsif i % 7==0 | |
puts "Team" | |
elsif i % 5==0 | |
puts "Nama" | |
else | |
puts i | |
end | |
end | |
for i in 1..100 | |
count(i) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment