たのしいRubyの練習問題

せっかく解いたからUPしよーかなとw

# encoding: UTF-8
# 摂氏→華氏
 print("Please input 摂氏(int)\n")
 input=gets
 input=input.chomp!
 my=input.to_f
 you=(my*9)/5+32
 print ("result(華氏): #{you}")
 ch=gets
# encoding: UTF-8
#  華氏→摂氏
 print("Please input 華氏(int)\n")
 input=gets
 input=input.chomp!
 my=input.to_f
 you=((my-32)*5)/9
 print ("result(摂氏): #{you}")
 ch=gets