Computer Science, asked by vanshika21052006, 9 months ago

write a program to input three angles and determine if they forms a triangle or not in Python​

Answers

Answered by karanjotgaidu
29

#Python program to determine if the #angles form a triangle or not

A=int(input("Enter the angle"))

B=int(input("Enter the angle"))

C=int(input("Enter the angle"))

S=A+B+C

if S==180:

print("The angles form a triangle")

else:

print("The angles do not form a triangle")

Answered by avishkargaikwad144
0

Answer:

Explanation:

A=input("enter the angel ")

A=int(A)

B=input("enter the angel ")

B=int(B)

C=input("enter the angle ")

C=int(C)

res=A+B+C

if res==180:

print(res,"this is the triangle ")

else:

print("this is not a triangle ")

Similar questions