2 solutions
- 1
Information
- ID
- 44
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 6
- Tags
- # Submissions
- 23
- Accepted
- 11
- Uploaded By
C++ :
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ch = 0;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= i; j++)
cout << (char)('A' + (ch++) % 26);
cout << endl;
}
return 0;
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.