prints triangle if sum of angles is equal to 180
prints triangle if sum of angles is equal to 180
f = int(input())
s = int(input())
t = int(input())
if((f+s+t) == 180):
print("It's a Triangle")
else:
print("It's not a Triangle")
prints triangle if sum of angles is equal to 180
f = int(input())
s = int(input())
t = int(input())
if((f+s+t) == 180):
print("It's a Triangle")
else:
print("It's not a Triangle")
Comments
Post a Comment