problem link:-GCD2 Problem - CodeChef
This may help
Ok thanks
for(int i=0; i<strlen(b); i++) mod = (mod*10 + b[i] - ‘0’ )%a;
what this line of code doing