function firstLoopProgramPowersOfTenVersion
% translation of first loop program in Ch 10 from C to Matlab,
% using powers of 10 instead of powers of 2
x = single(1);
Copyright By PowCoder代写 加微信 powcoder
while x > 0
x = single(x/10); % divide by 10
n = n + 1;
fprintf(’10 raised to the power -%d is %e\n’, n, x)
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com