LearnPy Hub
← Variables problems
Easy

Rectangle Area and Perimeter

Read the length and width of a rectangle (integers). Print its area on the first line and its perimeter on the second.

Input

Two integers.

Output

Two lines.

Sample 1

Input
5
3
Output
15
16

Sample 2

Input
1
1
Output
1
4
solution.py
Output appears here
Rectangle Area and Perimeter · Python practice problem · LearnPy Hub