Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = 5;
- totalSum = 0;
- for i = 1:n
- totalSum = totalSum + i;
- end
- disp(totalSum);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement