2 Commits
Author SHA1 Message Date
Daniil Doroshenko 88bfc9eefc Add formulas for pentagon 2024-04-05 17:35:50 +00:00
Daniil Doroshenko 2facbde202 Add formulas for Hexagon 2024-04-05 17:26:14 +00:00
2 changed files with 5 additions and 9 deletions
+5 -2
View File
@@ -3,8 +3,11 @@
- Circle: S = πR²
- Rectangle: S = ab
- Square: S = a²
- Hexagon: S = ((3 * 3**0.5)/2)a**2
- Pentagon: S = 5/2*a*h
## Perimeter
- Circle: P = 2πR
- Rectangle: P = 2a + 2b
- Square: P = 4a
- Square: P = 4a
- Hexagon: P = 6a
- Pentagon: P = 5a
-7
View File
@@ -1,7 +0,0 @@
def area(a, b):
return a * b
def perimeter(a, b):
return (a + b)