You are viewing a single comment's thread. Return to all comments →
import math AB = float(input()) BC = float(input()) rad = math.atan(AB/BC) deg = math.degrees(rad) print(int(round(deg)),chr(176),sep='')
wow,so simplified
shouldn't it be divided by 2? it's looking for MBC not ABC
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Find Angle MBC
You are viewing a single comment's thread. Return to all comments →
In Right-angled Triangle , Mid point in hypotenuse always equidistant from 3 sides meas here angle is tan-inv(ab/bc).
wow,so simplified
shouldn't it be divided by 2? it's looking for MBC not ABC