Pair of integers with difference K having an element as the K | C # program to implement the above problem ; Function to find the required pair ; No pair possible ; Driver Code
using System ; class GFG { static void computePair ( double K ) { if ( K == 1 ) { Console . Write ( " No " ) ; return ; } else { Console . Write ( K * K / ( K - 1 ) + " ▁ " ) ; Console . Write ( K / ( K - 1 ) + " STRNEWLINE " ) ; } } public static void Main ( String [ ] args ) { double K = 6 ; computePair ( K ) ; } }