hcf

CF

HCF (GCD) of long values

The program must accept two long values X, Y and print their HCF (GCD). Input Format:The first line contains X and Y separated by a space.…