(
-->
)
Task 2
The Task
Declare a variable named
square
and assign it
a square whose side equals the diagonal of the
given rectangle.
Visualization
The Java Instruction
Square square = new Square(r.diagonal());