Advertisement
NIKOLAY_TETUS

Untitled

Jun 13th, 2021
695
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     /*
  8.         А = 0 (A)
  9.         И = 1 (I)
  10.         М = 2 (M)
  11.         Р = 3 (R)
  12.         Я = 4 (Y)
  13.     */
  14.  
  15.     char arr[] = "AIMRY";
  16.  
  17.     long long count = 0;
  18.  
  19.     for(int i = 0; i < 5; i++)
  20.         for(int j = 0; j < 5; j++)
  21.             for(int k = 0; k < 5; k++)
  22.                 for(int v = 0; v < 5; v++)
  23.                 {
  24.                     count++;
  25.  
  26.                     cout << count << ") " << arr[i] << arr[j]  << arr[k] << arr[v] << endl;
  27.                 }
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement