%Computes the geometric mean of 10 numbers
n=1;
s=1;
while n<=10
    term=input('Give a positive number: ');
    while term<=0
        term=input('Please give a POSITIVE number: ');
    end
    n=n+1;
    s=s*term;
end
GM=nthroot(s,10)

% s=1;
% for n=1:10
%     term=input('Give a positive number: ');
%     while term<=0
%         term=input('Please give a POSITIVE number: ');
%     end
%     s=s*term;  
% end
