1,实心三角形

package mainimport "fmt"func main() { var chengshu int fmt.Print("pleares\n") fmt.Scanln(&chengshu) l := 1 for i := 1; i <= chengshu; i++ { for k := chengshu - i; k > 0; k-- { fmt.Print(" ") } for j := 1; j <= l; j++ { fmt.Print("*") } l += 2 fmt.Print("\n") }}