cs/practical-file/answers/question_02.py

4 lines
191 B
Python

# Question: Write a Python program that accepts the radius of a circle and prints its area.
radius = float(input("Enter the radius of the circle: "))
print(f"Area: {3.14 * radius * radius}")