I want a function to do something, but then I also want it to print what it was doing. I want it to find the greatest common factors of two numbers using
if (a % b ==0)
return b;
else
return gcf(b,a % b);
I want it to return the whole process if that makes sense.