L-03: Circle and square added

This commit is contained in:
smartiqa
2021-03-04 14:54:08 +03:00
commit 8ba9aeb3ce
2 changed files with 17 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
import math
def area(r):
return math.pi * r * r
def perimeter(r):
return 2 * math.pi * r
+7
View File
@@ -0,0 +1,7 @@
def area(a):
return a * a
def perimeter(a):
return 4 * a