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 := 1; i <= n - 2; i++ {
- fmt.Printf("%s||%s||%s\n", strings.Repeat(" ", n), strings.Repeat("_", n - 2), strings.Repeat(" ", n))
- }
- fmt.Printf("%s//%s\\\\%s\n", strings.Repeat(" ", n - 1), strings.Repeat(" ", n), strings.Repeat(" ", n - 1))
- for i := 1; i <= n - 4; i++ {
- if i == (n - 3) / 2 {
- fmt.Printf("%s||%s||]\n", strings.Repeat(" ", n - 2), strings.Repeat("_", n + 2))
- } else {
- fmt.Printf("%s||%s||\n", strings.Repeat(" ", n - 2), strings.Repeat("_", n + 2))
- }
- }
- fmt.Printf("%s\\\\%s//%s\n", strings.Repeat(" ", n - 1), strings.Repeat(" ", n), strings.Repeat(" ", n - 1))
- for i := 1; i <= n - 2; i++ {
- fmt.Printf("%s||%s||%s\n", strings.Repeat(" ", n), strings.Repeat("_", n - 2), strings.Repeat(" ", n))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement