00:02
Okay, this time they ask us what does the program segment display and then they give us a bunch of code so let's parse through what's important based on how we understand how if statements and control flow okay, let's see they created two in variables so they have a f is equal to seven and they initialize s to be 15 and then they modify f to be okay s mod 2.
00:39
What do we have then? well, the remainder of 5 when you divide by 2, or not 5, this is an s.
00:47
We'll say, okay, this is a variable.
00:50
When we try to run it, let me write my code, my comments in a different color.
00:56
It's going to say, okay, our variable has 15 in it.
01:00
What's the remainder when you divide by 2? well, that's just going to be equal to...
01:08
So f was now assigned the value of 1.
01:09
One.
01:12
All right, good to know.
01:13
Because now they're going to do more control flow.
01:16
They're going to do an if.
01:20
They're going to do an else if.
01:24
And they're going to do an else.
01:28
And they've properly separated their code into code blocks for every segment.
01:38
So now each code block is exclusive of one another.
01:40
And if else if else means only one of these following blocks will be executed.
01:48
And let's see if inside they have f is not equal to 1.
01:57
Well, that's false.
01:58
F is equal to 1...