diff --git a/area.py b/area.py new file mode 100644 index 00000000..8fee112e --- /dev/null +++ b/area.py @@ -0,0 +1,12 @@ + + +a = 5 +b = 6 +c = 7 + + +s = (a + b + c) / 2 + +# calculate the area +area = (s*(s-a)*(s-b)*(s-c)) ** 0.5 +print('The area of the triangle is %0.2f' %area) \ No newline at end of file