- Circle: S = πR²
- Rectangle: S = ab
- Square: S = a²
- Triangle: S = a*(h / 2)
- Circle: P = 2πR
- Rectangle: P = 2a + 2b
- Square: P = 4a
- Triangle: P = a + b + c
-
area: takes a number r, returns the area of a circle with radius r
-
- Function: area(r)
-
- Example: area(2) = 12.5836
-
perimeter: takes a number r, returns the perimeter (circumference) of a circle with radius r
-
- Function: perimeter(r)
-
- Example: perimeter(10) = 62.918
-
area: takes numbers a and b, returns the area of a rectangle with given lenght of a and b
-
- Function: area(a, b)
-
- Example: area(5, 10) = 50
-
perimeter: takes numbers a and b, returns the perimeter of a rectangle with given lenght of a and b
-
- Function: perimeter(a, b)
-
- Example: perimeter(4, 4) = 16
-
area: takes a number a, returns the area of a square with the given length of a and b
-
- Function: area(a)
-
- Example: area(7) = 49
-
perimeter: takes a number a, returns the perimeter of a square with the given length of a
-
- Function: perimeter(a)
-
- Example: perimeter(12) = 48
-
area: takes numbers a and h, returns the area of a triangle with the given lenght of a and h
-
- Function: area(a, h)
-
- Example: area(2) = 10
-
perimeter: takes numbers a, b, and c, returns the perimeter of a triangle with the given lenght of a, b and c
-
- Function: perimeter(a, b, c)
-
- Example: perimeter(1, 2, 3) = 6
- added rectangle.py
- fix error in triangle.py
- merge 2 branches
- added report
- added ID.txt