Find Angle MBC - Problem solution in Python

Author: Al-mamun Sarkar Date: 2020-03-26 08:52:23

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°