/**
 * This exercise requires the use of the multiplication assignment operator and a while loop with strings.
 * The task is to update the given string, 'text', by multiplying it 'num' times. Each repetition will concatenate
 * the original string to itself. The final updated string should contain the original string repeated 'num' times.
 *
 * @param text The original string
 * @param num The number of times to repeat the string
 * @return The updated string after multiplication assignment
 *
 * Example:
 * Calling stringMultiplicationAssignment("Hello", 3) should return "HelloHelloHello"
 * Calling stringMultiplicationAssignment("Python", 5) should return "PythonPythonPythonPythonPython"
 */
fun stringMultiplicationAssignment(text: String, num: Int): String {

    var updatedText = text
    var counter = 1

    while (counter < num) {
        updatedText += text
        counter++
    }

    return updatedText
}
/**
 * This exercise requires the use of the multiplication assignment operator and a while loop with strings.
 * The task is to update the given string, 'text', by multiplying it 'num' times. Each repetition will concatenate
 * the original string to itself. The final updated string should contain the original string repeated 'num' times.
 *
 * @param text The original string
 * @param num The number of times to repeat the string
 * @return The updated string after multiplication assignment
 *
 * Example:
 * Calling stringMultiplicationAssignment("Hello", 3) should return "HelloHelloHello"
 * Calling stringMultiplicationAssignment("Python", 5) should return "PythonPythonPythonPythonPython"
 */
fun stringMultiplicationAssignment(text: String, num: Int): String {
/**
 * This exercise requires the use of the multiplication assignment operator and a while loop with strings.
 * The task is to update the given string, 'text', by multiplying it 'num' times. Each repetition will concatenate
 * the original string to itself. The final updated string should contain the original string repeated 'num' times.
 *
 * @param text The original string
 * @param num The number of times to repeat the string
 * @return The updated string after multiplication assignment
 *
 * Example:
 * Calling stringMultiplicationAssignment("Hello", 3) should return "HelloHelloHello"
 * Calling stringMultiplicationAssignment("Python", 5) should return "PythonPythonPythonPythonPython"
 */
fun stringMultiplicationAssignment(text: String, num: Int): String {

    var updatedText = text
    var counter = 1

    while (counter < num) {
        updatedText += text
        counter++
    }

    return updatedText
}