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)
- fmt.Printf("%s|", strings.Repeat(".", n - 1))
- for i := 0; i < n; i++ {
- fmt.Print("\\/")
- }
- fmt.Printf("|%s\n", strings.Repeat(".", n - 1))
- fmt.Printf("%s|", strings.Repeat(".", n - 1))
- for i := 1; i <= 2 * n; i++ {
- fmt.Print("~")
- }
- fmt.Printf("|%s\n", strings.Repeat(".", n - 1))
- for i := 1; i <= n; i++ {
- fmt.Printf("%s|%s", strings.Repeat(".", n - 1), strings.Repeat(" ", i - 1))
- for j := n; j >= i; j-- {
- fmt.Print("{}")
- }
- fmt.Printf("%s|%s\n", strings.Repeat(" ", i - 1), strings.Repeat(".", n - 1))
- }
- fmt.Printf("%s%s%sMEOW%s%s%s\n", strings.Repeat(".", n - 1), "|", strings.Repeat(" ", n - 2), strings.Repeat(" ", n - 2), "|", strings.Repeat(".", n - 1))
- fmt.Printf("%s%s%sFOOD%s%s%s\n", strings.Repeat(".", n - 1), "|", strings.Repeat(" ", n - 2), strings.Repeat(" ", n - 2), "|", strings.Repeat(".", n - 1))
- for i := 1; i <= n; i++ {
- fmt.Printf("%s|%s", strings.Repeat(".", n - 1), strings.Repeat(" ", n - i))
- for j := 1; j <= i; j++ {
- fmt.Print("{}")
- }
- fmt.Printf("%s|%s\n", strings.Repeat(" ", n - i), strings.Repeat(".", n - 1))
- }
- fmt.Printf("%s|", strings.Repeat(".", n - 1))
- for i := 1; i <= 2 * n; i++ {
- fmt.Print("~")
- }
- fmt.Printf("|%s\n", strings.Repeat(".", n - 1))
- fmt.Printf("%s|", strings.Repeat(".", n - 1))
- for i := 0; i < n; i++ {
- fmt.Print("\\/")
- }
- fmt.Printf("|%s", strings.Repeat(".", n - 1))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement