#sample solution
def greeter(name)
return "Hi there #{name}!"
end
def by_three?(number)
if(number % 3 == 0)
return true
else
return false
end
end
puts greeter("Nathan")
puts by_three?(12)
def greeter(name)
return "Hi there #{name}!"
end
def by_three?(number)
if(number % 3 == 0)
return true
else
return false
end
end
puts greeter("Nathan")
puts by_three?(12)
No comments:
Post a Comment