Code:cout << "Input numbers are: " << x << " , " << y << endl; if ( x < y) { // exchange values of x and y temp=x; x = y; y=temp; } cout<<"x="<<x<<",y="<<y<<endl; /* At this point we will always have x >= y */ remainder=(x % y); while (remainder!=0); { x=y; y=x % y; remainder=x%y; } // display the result cout << endl ; cout << "The GCD is: " << y << endl ;