Write a C program for Extended Euclid Theorem.