Number of cycles in a Polygon with lines from Centroid to Vertices | Java program to find number of cycles in a Polygon with lines from Centroid to Vertices ; Function to find the Number of Cycles ; Driver code
class GFG { static int nCycle ( int N ) { return ( N ) * ( N - 1 ) + 1 ; } public static void main ( String [ ] args ) { int N = 4 ; System . out . println ( nCycle ( N ) ) ; } }