Skip to main content
2 of 3
Added missing words (know, bytes is optional but standard) and added syntax highlighting (which in retrospect did very little with this particular post)
Alex A.
  • 24.7k
  • 5
  • 38
  • 119

#Matlab/Octave, 26 bytes

I did not know about this built in so far=)

polyarea(t(1:2:5),t(2:2:6))
flawr
  • 43.9k
  • 7
  • 104
  • 249