Nested loops for double summation

18 views (last 30 days)
정진 박
정진 박 on 12 Apr 2022
Answered: Voss on 12 Apr 2022

Answers (1)

Voss
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

Tags

Community Treasure Hunt

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

Start Hunting!