I want to add 1 and 3 the 2 and 1. Then moving to second row I want to add 1 and 1 then 4 and 5. Similarly I want to, in general, using using loop for an image
a = [... 1 2 3 1 1 4 1 5 5 8 5 9 1 9 2 1]
Best Answer