Please, I'm trying to solve this problem: Create two “for loops”, one for i running from 1 to 5 by 1 and the other nested inside the first for j running from 1 to 8 by 1. Inside the nested loop, calculate the sum of the current I and j values and output the sum to the user followed by a tab.
I tried and did this:
for i = 1:1:5 for j = 1:1:8
fprintf ( '%g \t', sum)
I want to see if I did it right, I'm still confused on "sum" value. Thank you