Calculate area, perimeter and diagonal of a rectangle from length and width.
A rectangle's area is length × width, its perimeter is 2(l+w), and its diagonal follows the Pythagorean theorem.
Area
A = l × w
Diagonal
d = √(l² + w²)
Yes — a square is a rectangle where length equals width.
Two, and they are equal in length and bisect each other.