Nested loops for double summation

17 次查看(过去 30 天)
정진 박
정진 박 2022-4-12
回答: Voss 2022-4-12

回答(1 个)

Voss
Voss 2022-4-12
total = 0;
for i = 1:10
for j = 5:20
total = total + i + j;
end
end

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by