dakata450

Untitled

Jul 10th, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class UniquePINCodes {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6.  
  7. int x = Integer.parseInt(scanner.nextLine());
  8. int y = Integer.parseInt(scanner.nextLine());
  9. int n = Integer.parseInt(scanner.nextLine());
  10.  
  11.  
  12.  
  13. for (int i = 2; i <= x ; i += 2) {
  14. for (int j = 2; j <= y ; j++) {
  15. if(j == 2 || j == 3 || j == 5 || j == 7){
  16. }
  17.  
  18.  
  19.  
  20. for (int k = 2; k <= n; k += 2) {
  21.  
  22. System.out.printf("%d %d %d %n", i, j, k);
  23. }
  24. }
  25. }
  26. }
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment