Maximum number of region in which N non | Java program to implement the above problem ; Function to find the maximum number of regions on a plane ; print the maximum number of regions ; Driver code
class GFG { static void maxRegions ( int n ) { int num ; num = n * ( n + 1 ) / 2 + 1 ; System . out . println ( num ) ; ; } public static void main ( String [ ] args ) { int n = 10 ; maxRegions ( n ) ; } }