00:02
Okay, this time they ask if an if statement could be designed to logically perform the same test as the following nested if statement.
00:11
A value equal to 100.
00:14
If that's true, then take this console dot right line statement, print it, value is 100.
00:29
Okay, let's see else, and then they have a nested if statement.
00:36
If a value is less than 100, console.
00:53
That right line value is less than 100.
01:03
Let's see.
01:05
What can we do this? so a nested if statement using only an if statement or a switch statement.
01:12
The answer is yes, and this gets, it's going to be very long.
01:16
And you can chart in it depending on the variables that you use.
01:19
Like if a value is unsigned, then you're only going to have to write 99 and then you're the cases, you're going to have to type them out one at a time.
01:27
Switch, a value, a code block.
01:40
If it's positive, you're going to have to go, ok, or not negative...