/**
 * This exercise aims to test your understanding of string concatenation and the usage of the break statement.
 * You are given three inputs: a name (string), an age (integer), and an email (string).
 * Your task is to concatenate the name, age, and email using string concatenation and print them in the specified format.
 * However, you need to add a break statement in the correct place to terminate the loop.
 * Make sure you type the code accurately to pass the exercise.
 *
 * Example:
 * Input:
 * name = "John"
 * age = 30
 * email = "john@example.com"
 *
 * Output:
 * Name: John
 * Age: 30
 * Email: john@example.com
 */
fun stringBreak(name: String, age: Int, email: String) {

    val nameAgeEmail = name + age + email
    println("Name: ${nameAgeEmail.substring(0, name.length)}")
    println("Age: ${nameAgeEmail.substring(name.length, name.length + age.toString().length)}")
    println("Email: ${nameAgeEmail.substring(name.length + age.toString().length)}")
}
/**
 * This exercise aims to test your understanding of string concatenation and the usage of the break statement.
 * You are given three inputs: a name (string), an age (integer), and an email (string).
 * Your task is to concatenate the name, age, and email using string concatenation and print them in the specified format.
 * However, you need to add a break statement in the correct place to terminate the loop.
 * Make sure you type the code accurately to pass the exercise.
 *
 * Example:
 * Input:
 * name = "John"
 * age = 30
 * email = "john@example.com"
 *
 * Output:
 * Name: John
 * Age: 30
 * Email: john@example.com
 */
fun stringBreak(name: String, age: Int, email: String) {
/**
 * This exercise aims to test your understanding of string concatenation and the usage of the break statement.
 * You are given three inputs: a name (string), an age (integer), and an email (string).
 * Your task is to concatenate the name, age, and email using string concatenation and print them in the specified format.
 * However, you need to add a break statement in the correct place to terminate the loop.
 * Make sure you type the code accurately to pass the exercise.
 *
 * Example:
 * Input:
 * name = "John"
 * age = 30
 * email = "john@example.com"
 *
 * Output:
 * Name: John
 * Age: 30
 * Email: john@example.com
 */
fun stringBreak(name: String, age: Int, email: String) {

    val nameAgeEmail = name + age + email
    println("Name: ${nameAgeEmail.substring(0, name.length)}")
    println("Age: ${nameAgeEmail.substring(name.length, name.length + age.toString().length)}")
    println("Email: ${nameAgeEmail.substring(name.length + age.toString().length)}")
}