Advertisement
mark79

Unique PIN Codes

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