Problem 116414 · easy · Phase 01 Prerequisites & Setup

Rectangle Report

variables · f-strings · arithmetic

Read the width and height of a rectangle (two integers, one per line). Compute its area (width * height) and its perimeter (2 * (width + height)), then print them with labels.

The output must look exactly like this, with the numbers filled in:

Area: 12
Perimeter: 14

Examples

Input:
3
4
Output:
Area: 12
Perimeter: 14
Input:
5
5
Output:
Area: 25
Perimeter: 20

Constraints

  • 1 <= width, height <= 1000
  • There is exactly one space after each colon.

Goals

  • Store the result of a calculation in a well-named variable
  • Build output text with an f-string and {curly braces}
  • Print labelled results in a fixed format
Starting Python…