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