import math
print('this program calculates the height of a mountain')
a1 = float(input("please enter your azimuth1 in feet: "))
a2 = float(input("please enter your azimuth2 in feet: "))
d = float(input("please enter your distance between azimuth 1 & 2: "))
h = d * math.tan(a1) * math.tan(a2) / (math.tan(a2) - math.tan(a1))
print(h)
Comments
Displaying 0 of 0 comments ( View all | Add Comment )