Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
294 B
0
Indexable
import math
# We get an input
radius = int(input())
# Area of the circle in euclidian geometry
area_in_euclidian = math.pi * radius **2
# Area of the circle in taxicab geometry
area_in_taxicab = 2*radius**2
# Adjuct the decimals
print(f'{area_in_euclidian:.6f}')
print(f'{area_in_taxicab:.6f}')