#include <iostream>
#include <bits/stdc++.h>

using namespace std;

class solution{
    public:

    void nameprint(string name, int count , int n) {

        if (count==n)
        return ;

        cout<<name<<endl;

        nameprint(name, count + 1, n);

    }
};

int main(){

    solution sol;
    
    sol.nameprint("a" , 0 , 2);

    return 0;
}

Embed on website

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