how to draw triangle having area 0sq cm

it's just a flat line of any length. That is, its altitude is zero.

Or, maybe it has an altitude, but a zero-length base, so it's a vertical line.