Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class UniquePINCodes {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int x = Integer.parseInt(scanner.nextLine());
- int y = Integer.parseInt(scanner.nextLine());
- int z = Integer.parseInt(scanner.nextLine());
- for (int i = 2; i <= x; i += 2) {
- if (i % 2 == 0) {
- for (int j = 2; j <= y; j++) {
- if (j == 2 || j == 3 || j == 5 || j == 7) {
- for (int k = 2; k <= z; k += 2) {
- if (k % 2 == 0) {
- System.out.println(i + " " + j + " " + k);
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement