Print Name N times

print_Name.cpp
#include <bits/stdc++.h>
using namespace std;

void print_Name(int n){
    if(n==0)
        return;
    cout << "Akash Singh" << endl;
    print_Name(n-1);
}

int main() {
    int n;
    cin >> n;
    print_Name(n);
    return 0;
}
Output
5
Akash Singh
Akash Singh
Akash Singh
Akash Singh
Akash Singh