Find N integers with given difference between product and sum | Function to implement calculation ; Driver Code
< ? php function findNumbers ( $ n , $ d ) { for ( $ i = 0 ; $ i < $ n - 2 ; $ i ++ ) echo "1" , " ▁ " ; echo "2" , " ▁ " ; echo $ n + $ d , " STRNEWLINE " ; } $ N = 3 ; $ D = 5 ; findNumbers ( $ N , $ D ) ; ? >