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 n = Integer.parseInt(scanner.nextLine());
- for (int i = 1; i <= x; i++) {
- for (int j = 2; j < y; j++) {
- for (int k = 1; k <= n; k++) {
- if(i % 2 == 0 && k % 2 == 0 && j < Math.sqrt(y))
- System.out.printf("%d%d%d%n", i, j ,k);
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment