#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
puts("何算をしますか?")
puts("選択肢:足し算・引き算・掛け算・割り算")
print("計算方法:")
a = gets.chomp
if a == "足し算"
print("数字を入力してね:")
x = gets.to_f
printf("%f+", x)
y = gets.to_f
printf("%f+%f=",x,y)
print(x+y)
elsif a == "引き算"
print("数字を入力してね:")
x = gets.to_f
printf("%f-",x)
y = gets.to_f
printf("%f-%f=",x,y)
print(x-y)
elsif a == "掛け算"
print("数字を入力してね:")
x = gets.to_f
printf("%f*",x)
y = gets.to_f
printf("%f*%f=",x,y)
print(x*y)
elsif a == "割算"
print("数字を入力してね:")
x = gets.to_f
printf("%f/",x)
y = gets.to_f
printf("%f/%f=",x,y)
print(x/y)
elsif
puts("入力の仕方が間違っているよ")
end