Mathlab program solving answr below
3 次查看(过去 30 天)
显示 更早的评论
I want me to reVerse out put what will Be the math lab program looK Like,
n=5
for i=1:n
for j=1:i
fprintf('%d', i)
end
fprintf('\n')
end
回答(2 个)
Torsten
2022-8-20
移动:Image Analyst
2022-8-21
n = 5;
for i=n:-1:1
for j=n:-1:i
fprintf('%d', i)
end
fprintf('\n')
end
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!