Write a program to determine the length of ladder required to reach a given height when leaned against the house. The height and the angle of the ladder are given as inputs (Use math Library) in Python

Code

import math

import math


height = float(input("Enter the height of the house: "))
angle = float(input("Enter the angle of the ladder: "))
result = height / math.sin(math.radians(angle))
print("The length of the ladder is", result)

Output