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