#!/usr/bin/env ruby # -*- coding: utf-8 -*- print"数を入れてね: " kazu = gets.to_i if kazu % 2 == 0 puts"偶数だよ!" else puts"奇数だよ!" end