I have the code! But now I need to write it to compute three numbers? I do not know why but this code right here is not working, help please?
clear; clc
% input, take only positive numbers into account
a = input('First number: ');
b = input('Second number: ');
c = input('Third number: ');
a = abs(a);
b = abs(b); 
c = abs(c);
r = (a - b*floor(a/b/c)); 
% Repeat the operation till updates of a = # of update b
while r ~= 0
 a > b;
 a = b;
 b = r;
 r = (a - b*floor(a/b/c));
end 
% Show result
GCD = b


