Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = input('Please enter the first summation limit: ');
- t = input('Please enter the second summation limit: ');
- result = DoubleSum(s,t)
- function summationResult = DoubleSum(s, t)
- summationResult= 0;
- for i=1:s
- for j=1:t
- summationResult = summationResult + (i * j);
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment