/**
 * Given a pattern and a size, draw the pattern repeatedly using nested loops.
 *
 * @param pattern The pattern to be drawn.
 * @param size The size of the pattern.
 */
fun drawPattern(pattern: String, size: Int) {

    for (i in 0 until size) {
        for (j in 0..i) {
            print(pattern)
        }
        println()
    }
}
/**
 * Given a pattern and a size, draw the pattern repeatedly using nested loops.
 *
 * @param pattern The pattern to be drawn.
 * @param size The size of the pattern.
 */
fun drawPattern(pattern: String, size: Int) {
/**
 * Given a pattern and a size, draw the pattern repeatedly using nested loops.
 *
 * @param pattern The pattern to be drawn.
 * @param size The size of the pattern.
 */
fun drawPattern(pattern: String, size: Int) {

    for (i in 0 until size) {
        for (j in 0..i) {
            print(pattern)
        }
        println()
    }
}