 In C, you can put if statements inside of if statements, and that's called a nested if. Let's look at this program that calculates movie ticket prices. It uses a single if with a compound condition to determine whether a person is under 16 and attending on the weekend or not. If they're under 16 and it's a weekend, they get a price of 450. Otherwise, for everyone else, on every day, it's $7.95. There are, however, some sets of decisions that aren't easily addressed by a single if with a compound condition. Consider this program with a more complicated decision structure. Young people still get a discount, but the amount depends on whether they're attending on the weekend or not. Here's a flowchart of the decision process. You can see that the first decision leads to another decision. In C, that translates to a nested if statement. Let's put that into our code. The first decision asks if age is less than 16. If that's true, it leads to another question, namely, is the day equal to 6 or is the day equal to 7? If that's true, then the price is $6. Otherwise, the price is $4.50. That takes care of the case when age is less than 16. If age is not less than 16, the price is $8. No matter which day it is. And then print the result. Let's build that and let's run it. For example, a 15-year-old person who attends on Wednesday pays $4.50. If they attend on Saturday, they pay $6. And somebody who's 25 on any day of the week pays $8. When you write nested if statements, it's vital to indent properly and use braces to keep your code organized and readable. Here's the flowchart and the corresponding code for the nested if.