Ask Question
26 November, 13:47

function summationResult = DoubleSum (s, t) % s: First summation limit (i = 1 to s) % t: Second summation limit (j = 1 to t) summationResult = 0; % Write two nested for loops to calculate the double summation % summationResult = summationResult + (i * j); end

+4
Answers (1)
  1. 26 November, 13:59
    0
    function summationResult=DoubleSum (s, t)

    summationResult=0;

    for i=1:s %first summation limit (i = 1 to s)

    for j=1:t %second summation limit (j = 1 to t)

    summationResult = summationResult + (i*j);

    end

    end

    end
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “function summationResult = DoubleSum (s, t) % s: First summation limit (i = 1 to s) % t: Second summation limit (j = 1 to t) ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers