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 row := 0; row < n - 3; row++ {
- fmt.Println(strings.Repeat(" ", n) + "|" + strings.Repeat(" ", n))
- }
- fmt.Println(strings.Repeat(" ", n - 1) + "_|_" + strings.Repeat(" ", n - 1))
- for row := 0; row < n - 3; row++ {
- fmt.Println(strings.Repeat(" ", n - 1) + "|-|" + strings.Repeat(" ", n - 1))
- }
- fmt.Println(strings.Repeat(" ", n - 2) + "_|-|_" + strings.Repeat(" ", n - 2))
- for row := 0; row < n - 3; row++ {
- fmt.Println(strings.Repeat(" ", n - 2) + "|***|" + strings.Repeat(" ", n - 2))
- }
- fmt.Println(" " + strings.Repeat("_", n - 3) + "|***|" + strings.Repeat("_", n - 3) + " ");
- for row := 0; row < n * 4 - 1; row++ {
- fmt.Println(" " + strings.Repeat("|", n - 2) + "---" + strings.Repeat("|", n - 2) + " ")
- }
- fmt.Println("_" + strings.Repeat("|", n - 2) + "---" + strings.Repeat("|", n - 2) + "_")
- for row := 0; row < n - 2; row++ {
- fmt.Println(strings.Repeat("|", n * 2 + 1))
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement