Column wise addition

why you write
a [ i ] [ j ]+= a [ i ] [ j ]+a [ i ] [ j +1] but i think you must write
a [ i ] [ j ]+= a [ i ] [ j ]+a [ i ] [ j -1]
please tell me why you write j+1 in column wise addition

both are correct it depend on how you run the loop
In the video “j” started from “m-2” and decrease every time hence it is also correct
image

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.