(January 10, 2018 at 12:13 am)FlatAssembler Wrote: Thanks, SteelCurtain. 15 is the correct answer.
And I agree with you that the tasks are very confusing. Pseudocode itself can be confusing, especially if you didn't go to a high school with informatics as a subject, where the same pseudocode as one on the maturity test is used. Looking at an algorithm you've never seen before and trying to guess what it's doing is very confusing.
Step by step is the key. Go slowly and carefully, bit by bit. Note down all relevant values that you may need to use or refer to again.