NOTE : Further check can be applied in case of line segments . Here , we have considered AB and CD as lines
Console . Write ( " The ▁ intersection ▁ of ▁ the ▁ given ▁ lines ▁ AB ▁ " + " and ▁ CD ▁ is : ▁ " ) ; Point . displayPoint ( intersection ) ; } } }