No. The point is that you never change the variable a. So b goes 2, 3, 4 etc but you keep adding that to 10.
What you need to do after incrementing b is add it to the previous RESULT not to a which is still 10.
Steve
No. The point is that you never change the variable a. So b goes 2, 3, 4 etc but you keep adding that to 10.
What you need to do after incrementing b is add it to the previous RESULT not to a which is still 10.
Steve