Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class new11 {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- int firstNum = Integer.parseInt(scan.nextLine());
- int secondNum = Integer.parseInt(scan.nextLine());
- int thirdNum = Integer.parseInt(scan.nextLine());
- for (int i = 1; i <= firstNum; i++) {
- if (i % 2 == 0) {
- if (secondNum > 7 || secondNum < 2) {
- continue;
- }
- for (int j = 2; j <= secondNum; j++) {
- if (j == 4) {
- continue;
- }
- if (j == 6) {
- continue;
- }
- for (int k = 1; k <= thirdNum; k++) {
- if (k % 2 == 0) {
- System.out.printf("%d %d %d\n", i, j, k);
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement