Back to task

157 symbols ruby
Tue Sep 20 12:58:18 2016 JJonesJr
inp= gets.chomp.to_i;
str= "#{(inp/60**2).to_s}";
inp= (inp % (60**2)).to_s;
str += ":#{inp.to_i/60}";
inp= (inp.to_i % 60).to_s;
str += ":#{inp}";
puts str;


Leave a comment

Parsed as Markdown

Login to leave a comment