#!/usr/bin/env ruby # -*- coding: utf-8 -*- def suruzi(x,y,z) a=x+y+z b=a/3 return a end printf("3と4と2の平均は%sです。\n",suruzi(3,2,4))