#include <iostream>
using namespace std;

int main() { 
    int x;
    cout<<" enter number of rows : "<<endl;
    cin>>x;
    int y;
    cout<<" enter number of columns : "<<endl;
    cin>>y;
    
    for ( int i = 1 ; i <= x; i++){
        for (int z = 1 ; z <=y; z++){
            cout<<(char)(i+96)<<" ";
        }
        cout<<endl;
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: