Count of N digit numbers possible which satisfy the given conditions | Function to return the factorial of n ; Function to return the count of numbers possible ; Driver code
function fact ( n ) { let res = 1 ; for ( let i = 2 ; i <= n ; i ++ ) res = res * i ; return res ; } function Count_number ( N ) { return ( N * fact ( N ) ) ; } let N = 2 ; document . write ( Count_number ( N ) ) ;