Skip to content

Instantly share code, notes, and snippets.

@MattPorto
Created August 4, 2016 00:02
Show Gist options
  • Save MattPorto/be91dd4ed7fabc4448951077324f6ae5 to your computer and use it in GitHub Desktop.
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
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