I'm solving a problem where given two coordinates, calculate the area of the rectangle.
I know that the answer is abs(x1-x2)*abs(y1-y2)
.
But the problem is for an introduction to C++, and we only know variables and arithmetic.
I don't know if is possible or is a problem to see who know if-statements or abs function