Break the number into three parts | C # program to count number of ways to break a number in three parts ; Function to count number of ways to make the given number n ; driver program
using System ; class GFG { static long count_of_ways ( long n ) { long count = 0 ; count = ( n + 1 ) * ( n + 2 ) / 2 ; return count ; } public static void Main ( ) { long n = 3 ; Console . WriteLine ( count_of_ways ( n ) ) ; } }