Maximum number of line intersections formed through intersection of N planes | Function to count maximum number of intersections possible ; Driver Code
def countIntersections ( n ) : NEW_LINE INDENT return n * ( n - 1 ) // 2 NEW_LINE DEDENT n = 3 NEW_LINE print ( countIntersections ( n ) ) NEW_LINE