/**
 * This function prompts the user for the real and imaginary parts of a complex number, and returns it as a Pair.
 *
 * @return Pair<Double, Double> A Pair representing the complex number in rectangular form
 */
fun getComplexNumber(): Pair<Double, Double> {

    print("Enter the real part of the complex number: ")
    val realPart = readLine()!!.toDouble()
    
    print("Enter the imaginary part of the complex number: ")
    val imaginaryPart = readLine()!!.toDouble()
    
    return Pair(realPart, imaginaryPart)
}
/**
 * This function prompts the user for the real and imaginary parts of a complex number, and returns it as a Pair.
 *
 * @return Pair<Double, Double> A Pair representing the complex number in rectangular form
 */
fun getComplexNumber(): Pair<Double, Double> {
/**
 * This function prompts the user for the real and imaginary parts of a complex number, and returns it as a Pair.
 *
 * @return Pair<Double, Double> A Pair representing the complex number in rectangular form
 */
fun getComplexNumber(): Pair<Double, Double> {

    print("Enter the real part of the complex number: ")
    val realPart = readLine()!!.toDouble()
    
    print("Enter the imaginary part of the complex number: ")
    val imaginaryPart = readLine()!!.toDouble()
    
    return Pair(realPart, imaginaryPart)
}