# 入力された値を文字列で受け取る input = gets.chomp # 数値に変換する a = input.to_i a.times do|n| puts input * (a - n) end