python-archieve-projects/M303/4.py

5 lines
94 B
Python

sum = float(num) + float(num2)
s = (a+b+c)/2
area = (s * (s - a) * (s - b) * (s - c)) ** 0.5