Find Angle MBC

Sort by

recency

|

869 Discussions

|

  • + 0 comments

    This is how you find angle MBC with degree sign: Syntax:

    import math ab=int(input()) bc=int(input()) print(f"{str(round(math.degrees(math.atan2(ab,bc))))}\u00B0")

  • + 0 comments

    import math

    a,b= int(input()), int(input())

    print(str(round(math.degrees(math.atan2(a,b))))+chr(176))

  • + 0 comments

    Being well versed in the math class helps the most:

    # Enter your code here. Read input from STDIN. Print output to STDOUT
    import math
    
    AB = int(input())
    BC = int(input())
    
    
    
    AC = math.sqrt((AB ** 2) + (BC ** 2))
    print(f"{round(math.degrees(math.acos(BC/AC)))}\N{DEGREE SIGN}")
    
  • + 1 comment

    import math

    ab = int(input()) bc = int(input())

    angle_rad = math.atan2(ab, bc) angle_deg = math.degrees(angle_rad)

    print(round(angle_deg)) out is 45 just number but need 45° how

  • + 0 comments

    Here is HackerRank Find Angle MBC solution in Python - https://programmingoneonone.com/hackerrank-find-angle-mbc-solution-in-python.html