Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- "strings"
- )
- func main() {
- var n int
- fmt.Scanln(&n)
- for i := 0; i <= n; i++ {
- fmt.Printf("%s%s | %s%s\n", strings.Repeat(" ", n - i), strings.Repeat("*", i), strings.Repeat("*", i), strings.Repeat(" ", n - i))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement