Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a1 ,a2 ,n;
- cin >> a1 >> a2 >> n;
- for (int i = a1; i < a2; i++) {
- for (int x = 1; x < n; x++) {
- for (int y = 1; y < n / 2; y++) {
- if (i % 2 == 1 && (i + x + y) % 2 == 1) {
- cout << (char)i << "-" << x << y << i << endl;
- }
- }
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement