Skip to content

Commit 1bba583

Browse files
Create area-of-circle.py
1 parent b085575 commit 1bba583

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

area-of-circle.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
def findArea(r):
3+
PI = 3.142
4+
return PI * (r*r);
5+
6+
print("Area is %.6f" % findArea(5));

0 commit comments

Comments
 (0)