AreaRectangle

Write a program that calculates the area and perimeter of a rectangle. The side lengths should be inputted by the
user. The area and perimeter of the rectangle should be calculated and returned using 2 user defined functions; area &
perimeter and then outputted as shown below. Note that 5.6 and9.8 are only examples.
A 5.6 by 9.8 rectangle has an area of 54.88 and a perimeter of 30.8.

×
New Download