Last active
February 21, 2016 15:43
-
-
Save cherenkov/09c2a7f1e0a511f38a4e to your computer and use it in GitHub Desktop.
中学何年生かわかる便利スクリプト #pictruby
This file contains hidden or 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
def main | |
age = Popup.input "中学何年生か計算します。年齢を入力してください。" | |
Popup.msg "中学#{age.to_i - 12}年生" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment