/**
 * This exercise requires the electrician to understand how the multiplication assignment operator (*=)
 * and the less than operator (<) can be used together in Kotlin.
 *
 * The exercise involves calculating the sum of two given numbers, num1 and num2. However, the catch
 * is that the electrician must use both the multiplication assignment operator and the less than operator
 * to solve the exercise.
 *
 * The electrician should aim to create an efficient solution that calculates the sum by using these operators.
 *
 * @param num1 A number to be added.
 * @param num2 Another number to be added.
 * @return The sum of num1 and num2, calculated using the multiplication assignment operator and the less than operator.
 *
 * Example:
 * multiplicationAndLessThan(5, 3) => 15
 * multiplicationAndLessThan(8, -2) => -16
 */
fun multiplicationAndLessThan(num1: Int, num2: Int): Int {

    // Check if num1 is zero, return 0 if true
    if (num1 == 0) {
        return 0
    }

    // Check if num2 is zero, return 0 if true
    if (num2 == 0) {
        return 0
    }

    // Calculate the sum using the multiplication assignment operator and the less than operator
    var result = num1
    result *= num2
    return result
}
/**
 * This exercise requires the electrician to understand how the multiplication assignment operator (*=)
 * and the less than operator (<) can be used together in Kotlin.
 *
 * The exercise involves calculating the sum of two given numbers, num1 and num2. However, the catch
 * is that the electrician must use both the multiplication assignment operator and the less than operator
 * to solve the exercise.
 *
 * The electrician should aim to create an efficient solution that calculates the sum by using these operators.
 *
 * @param num1 A number to be added.
 * @param num2 Another number to be added.
 * @return The sum of num1 and num2, calculated using the multiplication assignment operator and the less than operator.
 *
 * Example:
 * multiplicationAndLessThan(5, 3) => 15
 * multiplicationAndLessThan(8, -2) => -16
 */
fun multiplicationAndLessThan(num1: Int, num2: Int): Int {
/**
 * This exercise requires the electrician to understand how the multiplication assignment operator (*=)
 * and the less than operator (<) can be used together in Kotlin.
 *
 * The exercise involves calculating the sum of two given numbers, num1 and num2. However, the catch
 * is that the electrician must use both the multiplication assignment operator and the less than operator
 * to solve the exercise.
 *
 * The electrician should aim to create an efficient solution that calculates the sum by using these operators.
 *
 * @param num1 A number to be added.
 * @param num2 Another number to be added.
 * @return The sum of num1 and num2, calculated using the multiplication assignment operator and the less than operator.
 *
 * Example:
 * multiplicationAndLessThan(5, 3) => 15
 * multiplicationAndLessThan(8, -2) => -16
 */
fun multiplicationAndLessThan(num1: Int, num2: Int): Int {

    // Check if num1 is zero, return 0 if true
    if (num1 == 0) {
        return 0
    }

    // Check if num2 is zero, return 0 if true
    if (num2 == 0) {
        return 0
    }

    // Calculate the sum using the multiplication assignment operator and the less than operator
    var result = num1
    result *= num2
    return result
}