https://www.acmicpc.net/problem/2441
import java.util.*;
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var n=s.nextInt()
for(i in n downTo 1){
for(k in 0 until n-i){
print(" ")
}
for(j in 0 until i){
print("*")
}
println()
}
}