Originally Posted by
isuckatlife
\
Here is an example of the terminal with the output:
Enter the x coordinate for the top-left corner: 0
Enter the y coordinate for the top-left corner: 2
Enter the x coordinate for the bottom-right corner: 1
Enter the y coordinate for the bottom-right corner: 4
Now enter the x coordinate for a point: 3 //I am doing nothing with this yet
Now enter the y coordinate for a point: 5 //I am doing nothing with this yet
The area of the rectangle is: 2.000000117 //the answer should just be 2 right? why the strange decimals?