LearnPy Hub
← Variables problems
Easy

Rectangle Area & Perimeter

Read the length and width of a rectangle and print its area and perimeter exactly in the format shown.

Input

Two integers on separate lines.

Output

Two lines: Area: X and Perimeter: Y.

Sample 1

Input
4
3
Output
Area: 12
Perimeter: 14

Sample 2

Input
10
10
Output
Area: 100
Perimeter: 40
solution.py
Output appears here
Hints
Rectangle Area & Perimeter · Python practice problem · LearnPy Hub