Make a Better WORLD, If You Cannot to Do So, Make a Better YOU
Wednesday, December 30, 2015
formation of triangle
# to find out if given sides form a triangle
a=input("enter first side")
b=input("enter second side")
c=input("enter third side")
d=int(a)
e=int(b)
f=int(c)
if d+e>f and e+f>d and f+d>e:
print("it is atriangle")
else:
print("not triangle")
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment