Nested loops for double summation

回答(1 个)

total = 0;
for i = 1:10
for j = 5:20
total = total + i + j;
end
end

类别

帮助中心File Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

提问:

2022-4-12

回答:

2022-4-12

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by