#!/usr/bin/env Ruby # -*- coding: utf-8 -*- printf("数字を入れる\n") nenrei = gets.to_i printf("%d歳です。\n", nenrei)