fork download
  1. import math
  2.  
  3. a = float(input())
  4. b = float(input())
  5. c = float(input())
  6.  
  7. p = (a + b + c) / 2
  8. S = math.sqrt(p * (p - a) * (p - b) * (p - c))
  9.  
  10. print(S)
  11.  
Success #stdin #stdout 0.01s 7176KB
stdin
3
4
5
stdout
6.0