#B4265. Rectangle Perimeter and Area
Rectangle Perimeter and Area
Rectangle Perimeter and Area
Given the length and width of a rectangle, compute its perimeter and area.
Formulas:
\(\text{Perimeter} = 2 \times (\text{length} + \text{width})\)
\(\text{Area} = \text{length} \times \text{width}\)
inputFormat
Input consists of two positive integers representing the length and width of the rectangle, separated by space.
outputFormat
Output the perimeter and area of the rectangle separated by a space.
sample
5 10
30 50