cs/Practical File/question_03.py
Neil Revin cc8b0efe94
feat: add practical file projects
Signed-off-by: Neil <neil@willofsteel.me>
2025-06-24 02:28:22 +05:30

9 lines
287 B
Python

# Question: Write a Python program to accept the length and width of a rectangle and compute its perimeter and area.
def main(length: int, width: int) -> None:
print("Perimeter:", 2 * (length + width))
print("Area:", length * width)
if __name__ == '__main__':
main(10, 10)