Advertisement
Osiris1002

Untitled

Dec 12th, 2022
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. package IZPIT;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Unique_PIN_Codes {
  6.     public static void main(String[] args) {
  7.         Scanner scan = new Scanner(System.in);
  8.  
  9.         int a = Integer.parseInt(scan.nextLine());
  10.         int b = Integer.parseInt(scan.nextLine());
  11.         int c = Integer.parseInt(scan.nextLine());
  12.  
  13.         for (int i = 2; i <= a ; i+=2) {
  14.  
  15.             for (int j = 2; j <= b ; j++) {
  16.  
  17.                 for (int k = 2; k <= c ; k+=2) {
  18.  
  19.                     if (j == 2 || j == 3 || j == 5 || j == 7){
  20.  
  21.                         System.out.println(i+""+ j + ""+ k);
  22.                     }
  23.  
  24.                 }
  25.  
  26.             }
  27.  
  28.         }
  29.  
  30.     }
  31. }
  32.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement