Computer Science, asked by parwath1, 10 months ago

write a program to input three angles of a triangle and check whether the triangle is possible or not

Answers

Answered by QwertyPs
2

Hëy Frïèñd...

I don't know which language you are using...

I'm writing this program in Python Language.

a = float(input("Enter first angle of the triangle:"))

b = float(input("Enter second angle of the triangle:"))

c = float(input("Enter third angle of the triangle:"))

sum = a + b + c

if sum ==180:

print(”The triangle is possible")

else:

print ("The Triangle is not possible")

.

.

.

.

I Hope This Will Help You ^_^^_^

Similar questions