I've succestfully made a function for Euclids HCF and its working. I'm trying to now make a function to use it to find Linear Congruence but I don't really know where to start, work through or end. Can anyone possibly help out?
function z = euclidshcf(x,z)
while mod(x,z) ~= 0
u = mod(x,z);
x = z ;
z = u ;
end
disp("The HCF is")
disp(z)
end
Best Answer