Question: You're given 4 points on a 2D plane. You need to find the if these 4 points construct a square or not. The side of
You're given 4 points on a 2D plane. You need to find the if these 4 points construct a square or not. The side of the square should be of a non-zero length.: The first line represents the x and y coordinates of the 1 st point separated by space. The second line represents the 2nd point, third line represents the 3rd point and fourth line represents the 4 th point.Print, true if the points construct a square, else print false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
