Minimum sum of two integers whose product is strictly greater than N | C # program for the above approach ; Function to find the minimum sum of two integers such that their product is strictly greater than N ; Store the answer using the AP - GP inequality ; Print the answer ; Driver Code ; Function Call
using System ; class GFG { static void minSum ( int N ) { int ans = ( int ) Math . Ceiling ( 2 * Math . Sqrt ( N + 1 ) ) ; Console . WriteLine ( ans ) ; } static public void Main ( ) { int N = 10 ; minSum ( N ) ; } }