Untitled

Pattern 7
 avatar
user_6679955
c_cpp
3 months ago
182 B
3
Indexable
void nStarTriangle(int n) {
    int n,m;
    cin>>n>>m;
   for(int i=0;i<n;i++){
       for(int j=0;j<i;j++){
           cout<<n/2 -i;

       }
       cout<<endl;
   }

}
Editor is loading...
Leave a Comment