Pattern 2
user_6679955
c_cpp
9 months ago
140 B
4
Indexable
void nForest(int n) {
for(int i=0; i<n; i++){
for (int j=0; j<=i; j++){
cout<< "* ";
}
cout<< endl;
}
}Editor is loading...
Leave a Comment
void nForest(int n) {
for(int i=0; i<n; i++){
for (int j=0; j<=i; j++){
cout<< "* ";
}
cout<< endl;
}
}