/**
 * Generate a pattern artwork
 *
 * @param rows Number of rows in the artwork
 * @param cols Number of columns in the artwork
 * @return Artwork pattern
 */
fun generateArtwork(rows: Int, cols: Int): String {

    var artwork = ""
    for (row in 0 until rows) {
        for (col in 0 until cols) {
            artwork += if ((row % 2 == 0 && col % 2 == 0) || (row % 2 != 0 && col % 2 != 0)) '*' else '+'
        }
        artwork += "\n"
    }
    return artwork
}
/**
 * Generate a pattern artwork
 *
 * @param rows Number of rows in the artwork
 * @param cols Number of columns in the artwork
 * @return Artwork pattern
 */
fun generateArtwork(rows: Int, cols: Int): String {
/**
 * Generate a pattern artwork
 *
 * @param rows Number of rows in the artwork
 * @param cols Number of columns in the artwork
 * @return Artwork pattern
 */
fun generateArtwork(rows: Int, cols: Int): String {

    var artwork = ""
    for (row in 0 until rows) {
        for (col in 0 until cols) {
            artwork += if ((row % 2 == 0 && col % 2 == 0) || (row % 2 != 0 && col % 2 != 0)) '*' else '+'
        }
        artwork += "\n"
    }
    return artwork
}