8 lines
154 B
Swift
8 lines
154 B
Swift
if let N = Int(readLine() ?? "") {
|
|
for n in 0..<N {
|
|
for _ in 0..<N-n {
|
|
print("*",terminator: "")
|
|
}
|
|
print()
|
|
}
|
|
} |