Ask Question
29 August, 22:34

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. 29 August, 22:52
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers