I need to write a program to calculate d extended euclidean algorithm and i don't know how...please help