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