Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int n;
- int main ()
- {
- cin >> n;
- for (int i=1; i < (2*n); i++)
- {
- if (i == n+1)
- {
- for (int k = 1; k < n; k++)
- cout << ".";
- for (int k = 1; k <= 2*n ; k++)
- cout << "A";
- cout << endl;
- }
- for (int j = 1; j < 2*n - i; j ++)
- {
- cout << ",";
- }
- if (i!= 1) cout << "A";
- for (int l = 1; l < 2*i -2; l++)
- {
- cout << "'";
- }
- cout << "A" << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement