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