def area(s) s*s end puts"Enter the side of square " s=gets.to_i a=area(s) puts"Area of square is #{a}"