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