/**
 * This function takes two numbers as input and returns the result of a conditional operation without using a ternary operator.
 * The numbers are multiplied with each other if they are both positive or both negative. Otherwise, their absolute values are multiplied and the sign is determined by their original signs.
 *
 * @param num1 an integer representing the first number
 * @param num2 an integer representing the second number
 * @return The result of the conditional operation
 */
fun alternativeToyUsingMultiplication(num1: Int, num2: Int): Int {

    return if (num1 >= 0 && num2 >= 0) {
        num1 * num2
    } else if (num1 < 0 && num2 < 0) {
        num1 * num2
    } else {
        if (num1 < 0) {
            return Math.abs(num1) * -Math.abs(num2)
        } else {
            return -Math.abs(num1) * Math.abs(num2)
        }
    }
}
/**
 * This function takes two numbers as input and returns the result of a conditional operation without using a ternary operator.
 * The numbers are multiplied with each other if they are both positive or both negative. Otherwise, their absolute values are multiplied and the sign is determined by their original signs.
 *
 * @param num1 an integer representing the first number
 * @param num2 an integer representing the second number
 * @return The result of the conditional operation
 */
fun alternativeToyUsingMultiplication(num1: Int, num2: Int): Int {
/**
 * This function takes two numbers as input and returns the result of a conditional operation without using a ternary operator.
 * The numbers are multiplied with each other if they are both positive or both negative. Otherwise, their absolute values are multiplied and the sign is determined by their original signs.
 *
 * @param num1 an integer representing the first number
 * @param num2 an integer representing the second number
 * @return The result of the conditional operation
 */
fun alternativeToyUsingMultiplication(num1: Int, num2: Int): Int {

    return if (num1 >= 0 && num2 >= 0) {
        num1 * num2
    } else if (num1 < 0 && num2 < 0) {
        num1 * num2
    } else {
        if (num1 < 0) {
            return Math.abs(num1) * -Math.abs(num2)
        } else {
            return -Math.abs(num1) * Math.abs(num2)
        }
    }
}