#!/usr/bin/env ruby puts("好きな数字を入力してね。") kazu = gets.to_i if kazu > 0 puts"その数字は+ですね! " elsif kazu < 0 puts"その数字は-ですね! " else puts"その数字は0ですね! " end