/**
 * Draws a pattern using nested for loop
 *
 * @param rows the number of rows in the pattern
 * @param columns the number of columns in the pattern
 */
fun drawPattern(rows: Int, columns: Int) {

    for (row in 0 until rows) {
        for (col in 0 until columns) {
            if (row < columns - col && row >= col) {
                print("*")
            } else if (row >= columns - col && row < col) {
                print("#")
            } else {
                print(" ")
            }
        }
        println()
    }
}
/**
 * Draws a pattern using nested for loop
 *
 * @param rows the number of rows in the pattern
 * @param columns the number of columns in the pattern
 */
fun drawPattern(rows: Int, columns: Int) {
/**
 * Draws a pattern using nested for loop
 *
 * @param rows the number of rows in the pattern
 * @param columns the number of columns in the pattern
 */
fun drawPattern(rows: Int, columns: Int) {

    for (row in 0 until rows) {
        for (col in 0 until columns) {
            if (row < columns - col && row >= col) {
                print("*")
            } else if (row >= columns - col && row < col) {
                print("#")
            } else {
                print(" ")
            }
        }
        println()
    }
}