The program goes through the following steps when the input is 13
step 1) check to see if the age is less than 2. It is not, so we move on
step 2) check to see if the age is 2 to less than 12. It is not, so we move on
step 3) check to see if the age is 12 to less than 22. We are in the right range, so we execute the print statement "student admission is $8"
After this the program is done. It doesn't check to see if the age is greater than 22 (that only would apply if the other if statements were false).
So we have four steps. The first three are checking those "if" statements mentioned. The fourth statement is executing the print output to show the price.