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

Respuesta :

Answer:

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