#!/usr/bin/env ruby # -*-coding: utf-8-*- def average (x,y,z) sum=x+y+z return sum/3 end puts average(3,4,2)