Alex_tz307

Arie Triunghi

Sep 12th, 2020
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. int arie(int x1, int y1, int x2, int y2, int x3, int y3) {
  2.   int area;
  3.   area = (x3 - x1) * (y2 - y1) - (x2 - x1) * (y3 - y1);
  4.   if(area < 0)
  5.     area *= -1;
  6.   return area;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment