9 lines
240 B
Python
9 lines
240 B
Python
# Question: Write a Python program that accepts the radius of a circle and prints its area.
|
|
|
|
def main(radius: int):
|
|
print(f"Area: {3.14 * radius * radius}")
|
|
# or you can do 3.13 * radius ** 2
|
|
|
|
if __name__ == '__main__':
|
|
main(7)
|