[Solved] Print 6,5,4,3,2 characters separated by a new line in C++?


You can try this:

for (int i=6; i>1; i--)
    {
        for (int j=0; j<i; j++)
            cout<<"*";

        cout<<endl;
    }

Output:

******
*****
****
***
**

2

solved Print 6,5,4,3,2 characters separated by a new line in C++?