;

Python Program to Find the Third Angle of a Triangle if Two Angles Are Given


Tutorialsrack 12/05/2020 Python

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
# 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)
Output

Enter the First Angle of a Triangle: 56

Enter the Second Angle of a Triangle: 44

Third Angle of a Triangle =  80.0


Related Posts



Comments

Recent Posts
Tags