how to calculate area of an rectangle code example Example: area of rectangle Area of rectangle = Length * Width