Nested loops for double summation
Show older comments
Answers (1)
Voss
on 12 Apr 2022
total = 0;
for i = 1:10
for j = 5:20
total = total + i + j;
end
end
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!