/**
 * This function appends new elements to a string using string concatenation.
 *
 * @param str1 The first string.
 * @param str2 The second string.
 * @param args Variable number of additional strings.
 * @return The final concatenated string.
 *
 * Example:
 * appendStrElements("Hello", "World", "!", " Welcome", " to", " the", " Civil Engineering World")
 * Output: "Hello World! Welcome to the Civil Engineering World"
 */
fun appendStrElements(str1: String, str2: String, vararg args: String): String {

    // Concatenate the first two strings
    var result = str1 + str2

    // Add additional strings to the result
    for (arg in args) {
        result += arg
    }

    return result
}
/**
 * This function appends new elements to a string using string concatenation.
 *
 * @param str1 The first string.
 * @param str2 The second string.
 * @param args Variable number of additional strings.
 * @return The final concatenated string.
 *
 * Example:
 * appendStrElements("Hello", "World", "!", " Welcome", " to", " the", " Civil Engineering World")
 * Output: "Hello World! Welcome to the Civil Engineering World"
 */
fun appendStrElements(str1: String, str2: String, vararg args: String): String {
/**
 * This function appends new elements to a string using string concatenation.
 *
 * @param str1 The first string.
 * @param str2 The second string.
 * @param args Variable number of additional strings.
 * @return The final concatenated string.
 *
 * Example:
 * appendStrElements("Hello", "World", "!", " Welcome", " to", " the", " Civil Engineering World")
 * Output: "Hello World! Welcome to the Civil Engineering World"
 */
fun appendStrElements(str1: String, str2: String, vararg args: String): String {

    // Concatenate the first two strings
    var result = str1 + str2

    // Add additional strings to the result
    for (arg in args) {
        result += arg
    }

    return result
}