The area calculation formula

Hello,

In case given coordinates: (3,2), (3,4), (5,2), (5,4) the area would be (4 - 2) * (5 - 3) = 4, but the output is 2, how is that possible?

Regards

hello @begginner_cp
3
1 1
2 4
5 2

here it is ->
(5-2-1) * (4-2-1) => 2 * 1 = 2

Aha, thanks I got it.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.