Write a program (with well written comments and explanations) to implement the extended Euclidean algorithm on page 70 (also lecture slides). The program prompts the user for 2 integers: p & q. The program calculates the Bezout coefficients of gcd(p,q)
c++ already contains the gcd algorithm, you can just call it (does the extended one use the normal one and add to it or is it different, I don't recall).
% is modulus in c++, and I think you don't need anything exotic to write this.