#include <iostream>
using namespace std;
int main() {
int x;
cout<<" enter rows : "<<endl;
cin>>x;
for(int i = 1 ; i<=x; i++){
for ( int j = 1 ; j<=i ; j++){
cout<<(char)(j+64)<<" ";
}
cout<<endl;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: