Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define FIO \
- ios_base::sync_with_stdio(false); \
- cin.tie(NULL); \
- cout.tie(NULL);
- int main()
- {
- FIO;
- int n;
- cin >> n;
- int i = 1;
- while (i <= n)
- {
- char startChar = 'A' + n - i;
- int j = 1;
- while (j<=i)
- {
- char ch=startChar + j - 1;
- cout<<ch;
- j++;
- }
- cout << endl;
- i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement