Post

[백준/코틀린] 2438번: 별 찍기 - 1

브론즈 5

링크

2438번: 별 찍기 - 1

풀이

생략

코드

1
2
3
4
5
6
7
8
fun main() {
    val n = readln().toInt()

    (1..n).forEach {
        println("*".repeat(it))
    }
}

This post is licensed under CC BY 4.0 by the author.