Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- /*
- А = 0 (A)
- И = 1 (I)
- М = 2 (M)
- Р = 3 (R)
- Я = 4 (Y)
- */
- char arr[] = "AIMRY";
- long long count = 0;
- for(int i = 0; i < 5; i++)
- for(int j = 0; j < 5; j++)
- for(int k = 0; k < 5; k++)
- for(int v = 0; v < 5; v++)
- {
- count++;
- cout << count << ") " << arr[i] << arr[j] << arr[k] << arr[v] << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement