Maximum points of intersection n lines | C # program to find maximum intersecting points ; nC2 = ( n ) * ( n - 1 ) / 2 ; ; Driver code ; n is number of line
using System ; class GFG { public static long countMaxIntersect ( long n ) { return ( n ) * ( n - 1 ) / 2 ; } public static void Main ( ) { long n = 8 ; Console . WriteLine ( countMaxIntersect ( n ) ) ; } }