Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Below code works fine in my IDE and when I give input as 3, its printing "Far". However, in the website, its shown nil output.
def multiples(x)
#Go on
if x%49 == 0 and x%3 == 0
puts "Fang"
elsif x%7 == 0
puts "fizz"
elsif x%15 == 0
puts "Foo"
else
puts "Far"
end
end