Have a good morning!Have a good morning!Past Early Morning

An if...else statement executes some code if a condition is true and another code if that condition is false. For example, since H is less than 20, it prints out "Have a good morning!". An if...elseif...else statement executes different codes for more than two conditions. For example, if H was either 1, 3, or 5, it would select the designated phrase assigned for the value. However, since it's neither (assigned 9), it prints out "Past Early Morning". The switch statement is used to perform different actions based on different conditions. Use the switch statement to select one of many blocks of code to be execute.