Skip to content

Commit 767e26a

Browse files
authored
Format Document
1 parent 5fdaba0 commit 767e26a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AREA OF TRIANGLE.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Python Program to find the area of triangle
2-
#calculates area of traingle in efficient way!!
2+
# calculates area of traingle in efficient way!!
33
a = 5
44
b = 6
55
c = 7
@@ -13,5 +13,5 @@
1313
s = (a + b + c) / 2
1414

1515
# calculate the area
16-
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
17-
print('The area of the triangle is %0.2f' %area)
16+
area = (s * (s - a) * (s - b) * (s - c)) ** 0.5
17+
print("The area of the triangle is %0.2f" % area)

0 commit comments

Comments
 (0)