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