/**
 * Calculates the new annual salary for an economist based on the number of years of experience.
 *
 * If the economist has 5 or more years of experience, their salary will be increased using the left shift operator.
 * If the economist has less than 5 years of experience, their salary will be decreased using the right shift operator.
 *
 * @param economistSalary The current annual salary of the economist.
 * @param yearsOfExperience The number of years of experience of the economist.
 */
fun shiftAndBranching(economistSalary: Int, yearsOfExperience: Int) {

    val newSalary = if (yearsOfExperience >= 5) {
        economistSalary shl yearsOfExperience
    } else {
        economistSalary shr yearsOfExperience
    }
    println("Economist's new salary: $newSalary")
}
/**
 * Calculates the new annual salary for an economist based on the number of years of experience.
 *
 * If the economist has 5 or more years of experience, their salary will be increased using the left shift operator.
 * If the economist has less than 5 years of experience, their salary will be decreased using the right shift operator.
 *
 * @param economistSalary The current annual salary of the economist.
 * @param yearsOfExperience The number of years of experience of the economist.
 */
fun shiftAndBranching(economistSalary: Int, yearsOfExperience: Int) {
/**
 * Calculates the new annual salary for an economist based on the number of years of experience.
 *
 * If the economist has 5 or more years of experience, their salary will be increased using the left shift operator.
 * If the economist has less than 5 years of experience, their salary will be decreased using the right shift operator.
 *
 * @param economistSalary The current annual salary of the economist.
 * @param yearsOfExperience The number of years of experience of the economist.
 */
fun shiftAndBranching(economistSalary: Int, yearsOfExperience: Int) {

    val newSalary = if (yearsOfExperience >= 5) {
        economistSalary shl yearsOfExperience
    } else {
        economistSalary shr yearsOfExperience
    }
    println("Economist's new salary: $newSalary")
}