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

15 lines
272 B
Plaintext

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