Find Angle MBC HackerRank problem solution in Python. The following shows how to solve the HackerRank Polar Coordinates Python Math problem.
Code:
import math
ab = int(input())
bc = int(input())
print( str( round( math.degrees( math.atan2(ab,bc) ) ) ) + '°' )
Test Input:
10
10
Test Output:
45°