A computer science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions
Area of a circle can simply be evaluated using following formula.
Area = pi * r2 where r is radius of circle
# Python program to find Area of a circle
def
findArea(r):
PI
=
3.142
return
*
(r
r);
# Driver method
print
(
"Area is %.6f"
%
findArea(
5
));
# This code is contributed by Chinmoy Lenka
Your feedback is highly appreciated and will help us to improve our content.
No comments:
Post a Comment
Your feedback is highly appreciated and will help us to improve our content.