Advertisement
SophiYo

O6UniquePin

Dec 18th, 2018
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. package August2018;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class O6UniquePin {
  6.     public static void main(String[] args) {
  7.         Scanner scanner = new Scanner(System.in);
  8.  
  9.         int n = Integer.parseInt(scanner.nextLine());
  10.         int m = Integer.parseInt(scanner.nextLine());
  11.         int l = Integer.parseInt(scanner.nextLine());
  12.  
  13.  
  14.         for (int i = 2; i <= n ; i+=2) {
  15.             for (int k = 2 ; k <= m ; k++) {
  16.             for (int j = 2; j <= l; j+=2) {
  17.                     if ( k==2 || k==3 || k== 5 || k==7){
  18.                             System.out.printf("%d %d %d%n", i, k, j);
  19.                     }
  20.                 }
  21.             }
  22.         }
  23.  
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement