#include <iostream>
using namespace std;
int main() {
cout << "Enter Row Input : " ;
int n;
cin >> n;
cout << endl;
int row = 1;
while(row <= n){
int col = 1;
while(col <= n){
char ch = 'A' + row - 1;
cout << ch << " ";
col += 1;
}
cout << endl;
row += 1;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: