NIKOLAY_TETUS

Untitled

Jun 14th, 2021
374
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     char arr[] = "ABCD";
  8.  
  9.     for (int i = 0; i < 4; i++)
  10.         for (int j = i; j < 4; j++)
  11.             for (int k = j; k < 4; k++)
  12.                 for (int v = k; v < 4; v++)
  13.                     cout << arr[i] << arr[j] << arr[k] << arr[v] << endl;
  14.  
  15.  
  16.     return 0;
  17. }
  18.  
RAW Paste Data