n=10; s=0;
for i=n:-1:1
    s=s+1/i;
end
fprintf('The sum is %8.6f \n',s)