[Swift] 직사각형 별찍기

물복딱복준복
|2023. 2. 16. 22:48
import Foundation

let n = readLine()!.components(separatedBy: [" "]).map { Int($0)! }
print(String(repeating: String(repeating: "*", count: n[0])+"\n", count: n[1]))