Untitled

mail@pastecode.io avatar
unknown
java
a month ago
355 B
0
Indexable
Never
Integer variables height and length are read from input, representing the height and the length of a rectangle, respectively. Assign recPerimeter with the perimeter of the rectangle.

Ex: If the input is 20 15, then the output is:

Perimeter: 70

Note: The perimeter of a rectangle is calculated by multiplying the sum of the height and the length by 2.

Leave a Comment