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 = 4;
- int coins[N] = {1, 2, 3, 4};
- for (int i = 0; i < 3; i++) {
- for (int j = 0; j < 3; j++) {
- for (int l = 0; l < 3; l++) {
- for (int h = 0; h < 3; h++) {
- cout << i*coins[0] << " "
- << j*coins[1] << " "
- << l*coins[3] << " "
- << h*coins[4];
- cout << endl;
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement