Advertisement
desislava_topuzakova

Stupid Password Generator 6.03.2016

Feb 26th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. package Mentorship;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class StupidPasswordGenerator {
  6. public static void main(String[] agrs) {
  7. Scanner scanner = new Scanner(System.in);
  8.  
  9. int n = Integer.parseInt(scanner.nextLine());
  10. int l = Integer.parseInt(scanner.nextLine());
  11.  
  12. for (int a = 1; a <= n; a++) {
  13. for (int b = 1; b <= n; b++) {
  14. for (char c = (char) 97; c < (char) l + 97; c++) {
  15. for (char d = (char) 97; d < (char) l + 97; d++) {
  16. for (int e = 1; e <= n; e++) {
  17. if (e > a && e > b) {
  18. System.out.printf("%d%d%c%c%d ", a, b, c, d, e);
  19. }
  20.  
  21. }
  22.  
  23. }
  24.  
  25. }
  26.  
  27. }
  28.  
  29. }
  30.  
  31. }
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement