Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Assignment_1/area of a triangle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
a=float(input("enter first side: "))
b=float(input("enter second side: "))
c=float(input("enter second side: "))
a=eval(input("enter first side: "))
b=eval(input("enter second side: "))
c=eval(input("enter second side: "))
s=( a+b+c)/2
area=(s*(s-a)*(s-b)*(s-c))**0.5
print("the area of triangle is : ",area )
print("the area of triangle is : ",area )