직각삼각형 출력하기
1부터 n만큼 반복하면서 별을 출력해준다.
import Foundation let n = Int(readLine()!)! for i in 1...n { print(String(repeating: "*", count: i)) }