Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x, y, z;
- cin >> x >> y >> z;
- for (int i = 2; i <= x; i += 2) {
- if (i % 2 == 0) {
- for (int j = 2; j <= y; j++) {
- if (j == 2 || j == 3 || j == 5 || j == 7) {
- for (int k = 2; k <= z; k += 2) {
- if (k % 2 == 0) {
- cout << i << " " << j << " " << k << endl;
- }
- }
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement