/**
 * Given a real and imaginary number, return the string representation of the complex number in Kotlin.
 * If the real number is positive and imaginary number is negative, continue to the next iteration.
 * Otherwise, return the string representation of the complex number in Kotlin.
 *
 * @param real a real number
 * @param imaginary an imaginary number
 * @return A string representing the complex number in Kotlin
 *
 * Examples:
 * complexNumbersEconomist(4, -2) -> "4-2i"
 * complexNumbersEconomist(-3, 5) -> "-3+5i"
 * complexNumbersEconomist(2, -7) -> "2+7i"
 * complexNumbersEconomist(-6, -4) -> null
 */
fun complexNumbersEconomist(real: Int, imaginary: Int): String? {

    if (real < 0 && imaginary < 0) {
        return null
    } else if (real > 0 && imaginary < 0) {
        // Continue statement is not needed in Kotlin
    } else {
        return "$real${if (imaginary < 0) "" else "+"}$imaginary" + "i"
    }
    return null
}
/**
 * Given a real and imaginary number, return the string representation of the complex number in Kotlin.
 * If the real number is positive and imaginary number is negative, continue to the next iteration.
 * Otherwise, return the string representation of the complex number in Kotlin.
 *
 * @param real a real number
 * @param imaginary an imaginary number
 * @return A string representing the complex number in Kotlin
 *
 * Examples:
 * complexNumbersEconomist(4, -2) -> "4-2i"
 * complexNumbersEconomist(-3, 5) -> "-3+5i"
 * complexNumbersEconomist(2, -7) -> "2+7i"
 * complexNumbersEconomist(-6, -4) -> null
 */
fun complexNumbersEconomist(real: Int, imaginary: Int): String? {
/**
 * Given a real and imaginary number, return the string representation of the complex number in Kotlin.
 * If the real number is positive and imaginary number is negative, continue to the next iteration.
 * Otherwise, return the string representation of the complex number in Kotlin.
 *
 * @param real a real number
 * @param imaginary an imaginary number
 * @return A string representing the complex number in Kotlin
 *
 * Examples:
 * complexNumbersEconomist(4, -2) -> "4-2i"
 * complexNumbersEconomist(-3, 5) -> "-3+5i"
 * complexNumbersEconomist(2, -7) -> "2+7i"
 * complexNumbersEconomist(-6, -4) -> null
 */
fun complexNumbersEconomist(real: Int, imaginary: Int): String? {

    if (real < 0 && imaginary < 0) {
        return null
    } else if (real > 0 && imaginary < 0) {
        // Continue statement is not needed in Kotlin
    } else {
        return "$real${if (imaginary < 0) "" else "+"}$imaginary" + "i"
    }
    return null
}