from math import sin, cos, tan, radians print("Solve for: ") print("1. Opposite side (sin)") print("2. Adjacent side (cos)") print("3. Tangent (tan)") choice = int(input("Enter choice: ")) angle = float(input("Enter angle in degrees: ")) hypotenuse = float(input("Enter hypotenuse: ")) if choice == 1: result = hypotenuse * sin(radians(angle)) print("Opposite side is:", round(result, 2)) elif choice == 2: result = hypotenuse * cos(radians(angle)) print("Adjacent side is:", round(result, 2)) elif choice == 3: opposite = float(input("Enter opposite side: ")) result = opposite / tan(radians(angle)) print("Adjacent side is:", round(result, 2)) else: print("Invalid choice.")