Created
May 21, 2015 08:47
-
-
Save matsubo/b2b89a9c662e25246652 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
100.times do |i| | |
number_s = sprintf("%05d", i).to_s | |
begin | |
puts sprintf("%05d", number_s) | |
rescue => e | |
puts e | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment