Find N integers with given difference between product and sum | Function to implement calculation ; Driver code
function findNumbers ( n , d ) { for ( let i = 0 ; i < n - 2 ; i ++ ) document . write ( " " + " " ) ; document . write ( " " + " " ) ; document . write ( n + d ) ; } let N = 3 , D = 5 ; findNumbers ( N , D ) ;