Calculates the area of a rectangle based on its two sides a and b.
a(int): The length of one side of the rectangle.b(int): The length of the other side of the rectangle.
area(int): The area of the rectangle.
Calculates the perimeter of a rectangle based on its two sides a and b.
a(int): The length of one side of the rectangle.b(int): The length of the other side of the rectangle.
perimeter(int): The perimeter of the rectangle.
Here are some examples of how to use the functions:
area(3, 4)
>>>12
perimeter(3, 4)
>>>14
| Commit Hash | Commit Message |
|---|---|
| 05b28e7 | add declarations on functions in rectangle.py and triangle.py |
| 125c0b0 | add declaration on functions in square.py |
| d0cf959 | add declaration on functions in circle.py |
| 649526c | add docs catalog, add docs/README.md file |