Middle three digits: Difference between revisions
→{{header|Ruby}}
(→{{header|Ruby}}: Improve output formatting.) |
|||
Line 571:
samples.each do |n|
▲ print "#{n}: "
begin
puts "%03d" % middle_three_digits(n)
|
(→{{header|Ruby}}: Improve output formatting.) |
|||
Line 571:
samples.each do |n|
▲ print "#{n}: "
begin
puts "%03d" % middle_three_digits(n)
|
edits