Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int a, b, max;
- cin >> a >> b >> max;
- char A = 35, B = 64;
- int counter = 0;
- for (int x = 1; x <= a; ++x) {
- for (int y = 1; y <= b; ++y) {
- counter++;
- cout << A << B << x << y << B << A << "|";
- A++;
- B++;
- if (A == 56) {
- A = 35;
- }
- if (B == 97) {
- B = 64;
- }
- if (counter == max) {
- break;
- }
- }
- if (counter == max) {
- break;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement