Correct Answer - Option 3 : 12
M = 0, I = 1, J = 1
M = M + I + J
M = 0 + 1 + 1 = 2
M = 2, I = 1, J = 2
M = 2 + 1 + 2 = 5
M = 5, I = 2, J = 1
M = 5 + 2 + 1 = 8
M = 8, I = 2, J = 2
M = 8 + 2 + 2 = 12
So the value of M, in the end, is 12.
- Note – The number 100/200 after the command ‘DO’ gives the label number ending the loop. Since most DO loops operate with an increment of 1 that’s why increment has not been mentioned.