Java Program to find GCD of two numbers

Example 1:



Output :

 
    GCD of 55 and 121 is: 11
 

Example 2:



Output :

 
  CD of 12 and 10 is 2 
 

Example 3:



Output :

 
    GCD of -12 and -10 is 2