#!/usr/koeki/bin/ruby def tax(price, ratio) # priceに値段、ratioに税率 をもらう charge = price*ratio charge.to_i end