Exercise 18 Solution

function chap6_prob9(ss, nn)
for k = 1:nn,
    fprintf('%c',ss);
end
fprintf('\n');


For more details, please contact me here.