The area and perimeter of rectangle
\n"; $length = 30; $width = 18; $perimeter = ($length * 2) + ($width * 2); $area = $length * $width; echo "The length is " .$length. "
\n"; echo "The width is " .$width. "
\n"; echo "The perimeter of the rectangle is " .$perimeter. "
\n"; echo "The area of the rectangle is " .$area. "
\n"; ?>