Skip to main content

Posts

Showing posts with the label #Write a Python program to enter two angles of a triangle and find the third angle.

ads1

Python basic , 12. Write a Python program to enter two angles of a triangle and find the third angle.

  12. Write a Python program to enter two angles of a triangle and find the third angle. Solution :- angle1 = int(input("Enter the First angle :-")) angle2 = int(input("Enter the Second angle :- ")) angle3 = 180-(angle1 + angle2) print("The third angle is :- ",angle3)   Output :-

ads2