How to perform Double Sum with the help of loops?
5 views (last 30 days)
Cris LaPierre on 18 Oct 2021
Edited: Cris LaPierre on 18 Oct 2021
See the nested for loop example on the for documentation page.
BTW, if i+j=3, then there is no double summing necessary, right? You already know the result.
Instead, the value of i is incrementing from m to n, and the value of j is incrementing from o to p, and i+j is the operation to be calculated for all values of i and j.