/**
 * The goal of this exercise is to concatenate two numbers and return the result. However, you should also use short-circuiting to check if either of the numbers is 0.
 * If one of the numbers is 0, return that number as the result without concatenating them. If both numbers are zero, return null.
 *
 * @param num1 A number (integer or float)
 * @param num2 A number (integer or float)
 * @return The concatenation of num1 and num2 if both numbers are not zero.
 * The non-zero number if one of the numbers is zero.
 * Null if both numbers are zero.
 */
fun concatenateNumbers(num1: Number, num2: Number): String? {

    if (num1 == 0 && num2 == 0) {
        return null
    }

    if (num1 == 0) {
        return num1.toString()
    }

    if (num2 == 0) {
        return num2.toString()
    }

    return num1.toString() + num2.toString()
}
/**
 * The goal of this exercise is to concatenate two numbers and return the result. However, you should also use short-circuiting to check if either of the numbers is 0.
 * If one of the numbers is 0, return that number as the result without concatenating them. If both numbers are zero, return null.
 *
 * @param num1 A number (integer or float)
 * @param num2 A number (integer or float)
 * @return The concatenation of num1 and num2 if both numbers are not zero.
 * The non-zero number if one of the numbers is zero.
 * Null if both numbers are zero.
 */
fun concatenateNumbers(num1: Number, num2: Number): String? {
/**
 * The goal of this exercise is to concatenate two numbers and return the result. However, you should also use short-circuiting to check if either of the numbers is 0.
 * If one of the numbers is 0, return that number as the result without concatenating them. If both numbers are zero, return null.
 *
 * @param num1 A number (integer or float)
 * @param num2 A number (integer or float)
 * @return The concatenation of num1 and num2 if both numbers are not zero.
 * The non-zero number if one of the numbers is zero.
 * Null if both numbers are zero.
 */
fun concatenateNumbers(num1: Number, num2: Number): String? {

    if (num1 == 0 && num2 == 0) {
        return null
    }

    if (num1 == 0) {
        return num1.toString()
    }

    if (num2 == 0) {
        return num2.toString()
    }

    return num1.toString() + num2.toString()
}