Maximum GCD of two numbers possible by adding same value to them | Function to calculate maximum gcd of two numbers possible by adding same value to both a and b ; Given Input
function maxGcd ( a , b ) { document . write ( Math . abs ( a - b ) ) ; } let a = 2231 ; let b = 343 ; maxGcd ( a , b ) ;