% Factors of positive integer n

n= input('Input n: ');

for i=2:n-1
    if (mod(n,i) == 0)
        fprintf('%d ', i);
    end
end

