Find Angle MBC - Problem solution in Python

Find Angle MBC - Problem solution in Python

Instructor-svgAl-Mamun Sarkar
Mar 26 , 2020

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°
  • Share On:
  • fb
  • twitter
  • pinterest
  • instagram