Find an N | Function to print the required permutation ; Driver code
function findPermutation ( N ) { for ( var i = 1 ; i <= N ; i ++ ) document . write ( i + " " ) ; document . write ( " " ) ; } var N = 5 ; findPermutation ( N ) ;