Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package SamiqtIzpit;
- import java.util.Scanner;
- public class P06 {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- int first = scanner.nextInt();
- int second = scanner.nextInt();
- int third = scanner.nextInt();
- for (int i = 2; i <= first; i += 2) {
- for (int j = 2; j <= second; j++) {
- for (int k = 2; k <= third; 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