Advertisement
Spocoman

14. Password Generator

Sep 25th, 2024
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.52 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. func main() {
  6.     var n, l int
  7.     fmt.Scanln(&n)
  8.     fmt.Scanln(&l)
  9.  
  10.     for a := 1; a <= n; a++ {
  11.         for b := 1; b <= n; b++ {
  12.             for c := 97; c < 97 + l; c++ {
  13.                 for d := 97; d < 97 + l; d++ {
  14.                     for e := 1; e <= n; e++ {
  15.                         if a < e && e > b {
  16.                             fmt.Printf("%d%d%c%c%d ", a, b, c, d, e)
  17.                         }
  18.                     }
  19.                 }
  20.             }
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement