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