text: Maximum number of line intersections formed through intersection of N planes | C # implementation of the approach ; Function to count maximum number of intersections possible ; Driver Code
code: using System ; class GFG { static int countIntersections ( int n ) { return n * ( n - 1 ) / 2 ; } public static void Main ( String [ ] args ) { int n = 3 ; Console . WriteLine ( countIntersections ( n ) ) ; } }