Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import "fmt"
- func main() {
- var n, l int
- fmt.Scanln(&n)
- fmt.Scanln(&l)
- for a := 1; a <= n; a++ {
- for b := 1; b <= n; b++ {
- for c := 97; c < 97 + l; c++ {
- for d := 97; d < 97 + l; d++ {
- for e := 1; e <= n; e++ {
- if a < e && e > b {
- fmt.Printf("%d%d%c%c%d ", a, b, c, d, e)
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement