You're given a number N. Print the first N lines of the below-given pattern.

 

You're given a number N. Print the first N lines of the below-given pattern.






OURSHOPKEEPER







#include <iostream>
using namespace std;
int main()
{
    int nij;
    cin>>n;
    for(int i=0i<=ni++){
        for(int j=ij<nj++){
            cout<<" ";
        }
        for(int j=1j<=ij++){
        cout<<"*";}
        cout<<"\n";
    }
}







    


Click on the above button to download the code.



Post a Comment

If you have furthur QUERIES please let us know

Previous Post Next Post