/**
 * In this exercise, you need to write a function that takes an artist's name and a number as arguments.
 * The function should check if the number is divisible by both 3 and 5.
 * If it is, the function should divide the number by 3 and assign it to a variable called 'result'.
 * If it is only divisible by 3, the function should divide the number by 2 and assign it to 'result'.
 * If it is only divisible by 5, the function should multiply the number by 2 and assign it to 'result'.
 * If none of the conditions are met, the function should assign the number itself to 'result'.
 * At the end, the function should return the value of 'result'.
 *
 * @param artist The name of the artist.
 * @param number The number to check and perform operations on.
 * @return The final value of 'result' after performing the appropriate operations.
 */
fun divisionAssignmentOperatorNestedIf(artist: String, number: Int): Int {

    println("Hello $artist!")
    var result = number

    if (number % 3 == 0 && number % 5 == 0) {
        result = number / 3
    } else if (number % 3 == 0) {
        result = number / 2
    } else if (number % 5 == 0) {
        result = number * 2
    }

    return result
}
/**
 * In this exercise, you need to write a function that takes an artist's name and a number as arguments.
 * The function should check if the number is divisible by both 3 and 5.
 * If it is, the function should divide the number by 3 and assign it to a variable called 'result'.
 * If it is only divisible by 3, the function should divide the number by 2 and assign it to 'result'.
 * If it is only divisible by 5, the function should multiply the number by 2 and assign it to 'result'.
 * If none of the conditions are met, the function should assign the number itself to 'result'.
 * At the end, the function should return the value of 'result'.
 *
 * @param artist The name of the artist.
 * @param number The number to check and perform operations on.
 * @return The final value of 'result' after performing the appropriate operations.
 */
fun divisionAssignmentOperatorNestedIf(artist: String, number: Int): Int {
/**
 * In this exercise, you need to write a function that takes an artist's name and a number as arguments.
 * The function should check if the number is divisible by both 3 and 5.
 * If it is, the function should divide the number by 3 and assign it to a variable called 'result'.
 * If it is only divisible by 3, the function should divide the number by 2 and assign it to 'result'.
 * If it is only divisible by 5, the function should multiply the number by 2 and assign it to 'result'.
 * If none of the conditions are met, the function should assign the number itself to 'result'.
 * At the end, the function should return the value of 'result'.
 *
 * @param artist The name of the artist.
 * @param number The number to check and perform operations on.
 * @return The final value of 'result' after performing the appropriate operations.
 */
fun divisionAssignmentOperatorNestedIf(artist: String, number: Int): Int {

    println("Hello $artist!")
    var result = number

    if (number % 3 == 0 && number % 5 == 0) {
        result = number / 3
    } else if (number % 3 == 0) {
        result = number / 2
    } else if (number % 5 == 0) {
        result = number * 2
    }

    return result
}