cs/Practical File/question_02.py
Neil Revin cc8b0efe94
feat: add practical file projects
Signed-off-by: Neil <neil@willofsteel.me>
2025-06-24 02:28:22 +05:30

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)