Advertisement
Spocoman

Stupid Password Generator

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