Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- print("Enter the side lengths of the rectangle.")
- a = float(input("a = "))
- b = float(input("b = "))
- radius = float(input("Enter the radius of the circle: "))
- diagonal = math.sqrt(a ** 2 + b ** 2) / 2
- if diagonal == radius:
- print("The circle can be circumscribed around the rectangle.")
- else:
- print("The circle cannot be circumscribed around the rectangle.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement