/**
 * This function calculates the distance between two planets
 */
fun calculateDistance(planet1: Triple<Double, Double, Double>, planet2: Triple<Double, Double, Double>) {

    val (x1, y1, z1) = planet1
    val (x2, y2, z2) = planet2

    val distance = Math.sqrt((Math.pow((x2 - x1), 2.0) + Math.pow((y2 - y1), 2.0) + Math.pow((z2 - z1), 2.0)))

    // Complete the if statement below to conditionally print a message based on the distance
    if (distance < 10000) {
        println("The two planets are very close!")
    }
    // Add an else-if statement to print a different message when the distance is between 10000 and 50000
    else if (distance >= 10000 && distance < 50000) {
        println("The two planets are relatively close.")
    }
    // Add an else-if statement to print a different message when the distance is between 50000 and 100000
    else if (distance >= 50000 && distance < 100000) {
        println("The two planets are at a moderate distance.")
    }
    // Add an else statement to print a message when the distance is greater than or equal to 100000
    else {
        println("The two planets are far apart.")
    }
}
/**
 * This function calculates the distance between two planets
 */
fun calculateDistance(planet1: Triple<Double, Double, Double>, planet2: Triple<Double, Double, Double>) {
/**
 * This function calculates the distance between two planets
 */
fun calculateDistance(planet1: Triple<Double, Double, Double>, planet2: Triple<Double, Double, Double>) {

    val (x1, y1, z1) = planet1
    val (x2, y2, z2) = planet2

    val distance = Math.sqrt((Math.pow((x2 - x1), 2.0) + Math.pow((y2 - y1), 2.0) + Math.pow((z2 - z1), 2.0)))

    // Complete the if statement below to conditionally print a message based on the distance
    if (distance < 10000) {
        println("The two planets are very close!")
    }
    // Add an else-if statement to print a different message when the distance is between 10000 and 50000
    else if (distance >= 10000 && distance < 50000) {
        println("The two planets are relatively close.")
    }
    // Add an else-if statement to print a different message when the distance is between 50000 and 100000
    else if (distance >= 50000 && distance < 100000) {
        println("The two planets are at a moderate distance.")
    }
    // Add an else statement to print a message when the distance is greater than or equal to 100000
    else {
        println("The two planets are far apart.")
    }
}