In this python program, we will learn how to find the third angle of a triangle if two angles are given.
Here is the source code of the program to find the third angle of a triangle if two angles are given.
# Python Program to find the Third Angle of a Triangle if two angles are given
# Take the Input from the User
a = float(input("Enter the First Angle of a Triangle: "))
b = float(input("Enter the Second Angle of a Triangle: "))
# Finding the Third Angle
c = 180 - (a + b)
# Print the Output
print("Third Angle of a Triangle = ", c)
Enter the First Angle of a Triangle: 56
Enter the Second Angle of a Triangle: 44
Third Angle of a Triangle = 80.0
Comments