#include <iostream>
using namespace std;
int main() {
int n=5;
char character='A';
for(int i=0;i<n;i++){
for(int j=0;j<=i;j++){
cout<<character<<" ";
}
cout<<endl;
character++;
}
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: