Created
October 1, 2014 01:09
-
-
Save primenumber/b138c5f8f1e51763e2df to your computer and use it in GitHub Desktop.
何年にどんな名前のWindowsが出るか予想するスクリプト
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
# -*- coding:utf-8 | |
for i in 0..100 | |
puts "#{(2009 + 3*i).to_s}年にWindows#{(7 + i*(i+1)/2).to_s}が発売されます" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment