Finding Inverses of Elements in Zn

This program finds the inverse of a in Zn
Enter a (a nonzero integer less than n below):
Enter n (a nonzero integer):

Result

The inverse of a in Zn is: