Maximum GCD of two numbers possible by adding same value to them | C # program for the above approach ; Function to calculate maximum gcd of two numbers possible by adding same value to both a and b ; Driver Code ; Given Input
using System ; class GFG { static void maxGcd ( int a , int b ) { Console . Write ( Math . Abs ( a - b ) ) ; } static public void Main ( ) { int a = 2231 ; int b = 343 ; maxGcd ( a , b ) ; } }