simple-exercises/ruby-exercises/very-easy.rb
# Write a method that will take in a number of minutes, and returns a
# string that formats the number into `hours:minutes`.
Write a method that will take in a number of minutes, and returns a
string that formats the number into `hours:minutes`.
Write a method that will take in a number of minutes and returns a string that formats the number into ` hours : minutes ` .
def time_conversion minutes
  m = minutes / 60
  h = minutes - m * 60
  m.to_s + ":" + h.to_s
end
def time_conversion minutes m = minutes / 60 h = minutes - m * 60 m . to_s + ":" + h . to_s end
Write a method that will take in a number of minutes, and returns a
string that formats the number into `hours:minutes`.
Write a method that will take in a number of minutes and returns a string that formats the number into ` hours : minutes ` .
minutes
<not_specific>