Pattern 2
user_6679955
c_cpp
2 months ago
140 B
3
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; } }