Skip to content

Commit 122c309

Browse files
Merge pull request #1773 from sayampradhan/patch-30
Format Document
2 parents 5fdaba0 + 767e26a commit 122c309

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AREA OF TRIANGLE.py

Lines changed: 3 additions & 3 deletions
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)