Find N integers with given difference between product and sum | C # code to generate numbers with difference between product and sum is D ; Function to implement calculation ; Driver code
using System ; class GFG { static void findNumbers ( int n , int d ) { for ( int i = 0 ; i < n - 2 ; i ++ ) Console . Write ( "1" + " ▁ " ) ; Console . Write ( "2" + " ▁ " ) ; Console . Write ( n + d ) ; } public static void Main ( ) { int N = 3 , D = 5 ; findNumbers ( N , D ) ; } }