Advertisement
Spocoman

01. Unique PIN Codes

Sep 12th, 2023
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.     int x, y, z;
  7.     cin >> x >> y >> z;
  8.  
  9.     for (int i = 2; i <= x; i += 2) {
  10.         if (i % 2 == 0) {
  11.             for (int j = 2; j <= y; j++) {
  12.                 if (j == 2 || j == 3 || j == 5 || j == 7) {
  13.                     for (int k = 2; k <= z; k += 2) {
  14.                         if (k % 2 == 0) {
  15.                             cout << i << " " << j << " " << k << endl;
  16.                         }
  17.                     }
  18.                 }
  19.             }
  20.         }
  21.     }
  22.     return 0;
  23. }
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement