- #1
hokhani
- 483
- 8
The program below gives the result n1=75 wheras I expect to get n1=25. What is my mistake?
[C O D E]
clc
clear all
n1=0;
for n=1:5
for m=1:5
n1=n1+m;
end
end
n1
[/C O D E]
[C O D E]
clc
clear all
n1=0;
for n=1:5
for m=1:5
n1=n1+m;
end
end
n1
[/C O D E]