Task 4 of 5 · 0 solved · 5 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

11.3 Records — a record with a method

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Declare the record Rectangle with width and height, and give it two methods: area() and isSquare().

The program prints 12, false, true. Inside the record use width and height directly.

Your solution