You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem asks for the edges (lengths of the sides) of the triangle, not the vertex points.
If you enter points (1, 1), (2, 2), and (3, 3), your program will say that it is a valid triangle -- but these points describe a straight line, not a triangle.
By the way, several students in my class copied this wrong solution and lost a large number of points for doing it incorrectly -- and for plagiarism.
The text was updated successfully, but these errors were encountered:
The problem asks for the edges (lengths of the sides) of the triangle, not the vertex points.
If you enter points (1, 1), (2, 2), and (3, 3), your program will say that it is a valid triangle -- but these points describe a straight line, not a triangle.
By the way, several students in my class copied this wrong solution and lost a large number of points for doing it incorrectly -- and for plagiarism.
The text was updated successfully, but these errors were encountered: