area of square rectangle and circle code example Example: area of square Area of square = Length (or width, whichever) to the power of 2