/**
 * The fashion designer is creating a collection of clothes with infinite while loops.
 * Your task is to complete the code by filling in the missing syntax.
 *
 * Hint: Ensure that the program does not get stuck in an endless loop.
 */
fun designClothes() {

    // Create an infinite while loop to explore different designs
    while (true) {
        // Get user input for the type of clothing to design
        print("Enter the type of clothing to design (shirt, dress, pants): ")
        val typeOfClothing = readLine()

        // Check if the type of clothing is a shirt
        if (typeOfClothing == "shirt") {
            // Design a shirt
            println("Designing a $typeOfClothing...")

            // TODO: Insert appropriate syntax below to continue designing more clothes
        }
        
        // Check if the type of clothing is a dress
        else if (typeOfClothing == "dress") {
            // Design a dress
            println("Designing a $typeOfClothing...")

            // TODO: Insert appropriate syntax below to continue designing more clothes
        }
        
        // Check if the type of clothing is pants
        else if (typeOfClothing == "pants") {
            // Design pants
            println("Designing $typeOfClothing...")

            // TODO: Insert appropriate syntax below to continue designing more clothes
        }
    }
}
/**
 * The fashion designer is creating a collection of clothes with infinite while loops.
 * Your task is to complete the code by filling in the missing syntax.
 *
 * Hint: Ensure that the program does not get stuck in an endless loop.
 */
fun designClothes() {
/**
 * The fashion designer is creating a collection of clothes with infinite while loops.
 * Your task is to complete the code by filling in the missing syntax.
 *
 * Hint: Ensure that the program does not get stuck in an endless loop.
 */
fun designClothes() {

    // Create an infinite while loop to explore different designs
    while (true) {
        // Get user input for the type of clothing to design
        print("Enter the type of clothing to design (shirt, dress, pants): ")
        val typeOfClothing = readLine()

        // Check if the type of clothing is a shirt
        if (typeOfClothing == "shirt") {
            // Design a shirt
            println("Designing a $typeOfClothing...")

            // TODO: Insert appropriate syntax below to continue designing more clothes
        }
        
        // Check if the type of clothing is a dress
        else if (typeOfClothing == "dress") {
            // Design a dress
            println("Designing a $typeOfClothing...")

            // TODO: Insert appropriate syntax below to continue designing more clothes
        }
        
        // Check if the type of clothing is pants
        else if (typeOfClothing == "pants") {
            // Design pants
            println("Designing $typeOfClothing...")

            // TODO: Insert appropriate syntax below to continue designing more clothes
        }
    }
}