Nested loops for double summation

Answers (1)

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

Categories

Tags

Asked:

on 12 Apr 2022

Answered:

on 12 Apr 2022

Community Treasure Hunt

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

Start Hunting!