#!/usr/bin/ruby # -*- coding: utf-8 -*- =begin 원의 반지름을 받아 넓이를 계산하는 메서드 =end def area(r) Math::PI * r ** 2 end puts "Area = #{area(2)}"