DevJourney · code I wrote while learning

main.cpp

174 B
void nForest(int n) {
    int i = 0, j = 0;
    for (i = 0; i < n; i++) {
        for (j = 0; j < n; j++) {
            cout << "* ";
        }
        printf("\n");
    }
}