#include < iostream.h > long gcd(long, long); int main() { long x, y, hcf, lcm; cout<<"Enter two integers\n"; cin>>x>>y; hcf = gcd(x, y); lcm = (x*y)/hcf; cout<<"Greatest common divisor of "< y) { x = x - y; } else { y = y - x; } } return x; }