a month ago
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