Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <algorithm>
- #include <math.h>
- #include <vector>
- #include <fstream>
- using namespace std;
- int main()
- {
- const int N = 3;
- int coins[N] = {1, 2, 3};
- for (int i = 0; i < N; i++) {
- for (int j = i+1; j < N; j++) {
- for (int l = j+1; l < N; l++) {
- cout << coins[i] << coins[j] << coins[l];
- cout << endl;
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement