def helon(a,b,c)
s = (a+b+c)/2
puts s

m = Math.sqrt(s*((s-a)*(s-b)*(s-c)))
puts m
end

ヘロンの公式を用いて三角形の面積を求めるプログラムなんだけど
これであってる?

Rubyでつくった