Break the number into three parts | Function to count number of ways to make the given number n ; driver program
function count_of_ways ( n ) { var count = 0 ; count = ( n + 1 ) * ( n + 2 ) / 2 ; return count ; } var n = 3 ; document . write ( count_of_ways ( n ) ) ;