Declare the record Rectangle with width and height, and give it two methods: area() and isSquare().
Rectangle
width
height
area()
isSquare()
The program prints 12, false, true. Inside the record use width and height directly.
12
false
true