 Hi guys, so I'm just going to go over this tracing question from the week five workshop Because being able to trace conditions is a really important skill to have And I have a few tips that have helped me in the past with tracing code And hopefully you might find them helpful as well So what I've got is I have my variables in the corner here so that I can keep track of them So for A is 5, B is 3, C is 10, and result is 11 I've just written R just to make that a bit easier and a question like this Goes to show you how important it is to correctly format and indent your code because without any of that indentation I was to remove all of that That becomes a lot Harder to read and it becomes a lot harder to determine where a conditional starts and ends So you want to Have your code indented because it makes it a lot easier being able to say okay, I have this bracket here which Has belongs to this conditional here. Where does it end? It ends where This bracket is aligned to so this bracket here belongs to this one this bracket here belongs to this one and So on so that becomes a lot easier And the way I tackle these questions is as I'm tracing if I see an if and an else And I know I'm going to go into the if and I'm not going to go into the else Then I just scribble out the else or I comment it out or I delete it just so I can Just completely ignore it because a question like this looks quite daunting you have a little look at it And there's a lot of code there So we just want to make it as easy as we can for ourselves. So Let's start with our tracing. So our first condition says if a is less than C well, we've got a is five and C is ten So five is less than ten that's true. So that means that we are going to go into this if condition Which also means we're not going to go into this else condition so we can completely disregard this and I'm just going to delete it. See already. That's a lot easier So we've entered this if we're going to go into this one here. So if a is less than B Five is less than three. Well, that's false. Which means we aren't going to go into this if condition We're going to be going into the else. So I'm just going to remove that one there Okay, so we're going into this if here we hit this and it says if a modulo B is equal to zero Five modulo three is not zero. So we know we're not going to go into this if we're going to be going into this else Else result is equal to result minus one So we're going to take a variable here We're going to minus one So now we exit this else and we get here result is equal to result times three So I'm going to update that to 30. We exit this else. We exit this if We've gone down. So if result modulo five is zero. So our result is 30 30 modulo five is zero so this Condition is true. What we're doing is result is equal to result plus one So you should get 31 in the end