area of rectangle formula in maths code example Example: area of rectangle Area of rectangle = Length * Width