function rootTable
%ROOTTABLE Prints table of sqrt roots 1 thru 10
%  using a helper function printRootTable

clc                     % Clears the screen
printRootTable(10)      % Call the helper function

end

function printRootTable(n)

for i = 1:n
    fprintf(' %2d  %7.3f\n',i,sqrt(i))
end

end


