SHARE
TWEET

Untitled

a guest Oct 13th, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3. int n;
  4.  
  5. int main ()
  6. {
  7.     cin >> n;
  8.  
  9.     for (int i=1; i < (2*n); i++)
  10.     {
  11.         if (i == n+1)
  12.         {
  13.             for (int k = 1; k < n; k++)
  14.                 cout << ".";
  15.             for (int k = 1; k <= 2*n ; k++)
  16.                 cout << "A";
  17.             cout << endl;
  18.         }
  19.         for (int j = 1; j < 2*n - i; j ++)
  20.         {
  21.             cout << ",";
  22.         }
  23.         if (i!= 1) cout << "A";
  24.         for (int l = 1; l < 2*i -2; l++)
  25.         {
  26.             cout << "'";
  27.         }
  28.         cout << "A" << endl;
  29.     }
  30. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top