dakata450

Untitled

Jul 10th, 2022
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 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. for (int i = 1; i <= x; i++) {
  13. for (int j = 2; j < y; j++) {
  14. for (int k = 1; k <= n; k++) {
  15.  
  16. if(i % 2 == 0 && k % 2 == 0 && j < Math.sqrt(y))
  17. System.out.printf("%d%d%d%n", i, j ,k);
  18.  
  19.  
  20.  
  21.  
  22.  
  23. }
  24. }
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment