First of all you should learn to use a debugger
in order to see what your programme is doing.
If you are using Visual Studio you can follow this tutorial:
Tutorial: Debug C++ code - Visual Studio (Windows) | Microsoft Docs[
^]
Your current output is
1
22
333
4444
55555
666666
Your outer loop counts from 1 to 6.
You must use an outer loop counting from 6 to 1 instead.
The inner loop must count from the current "i" to 6.
Have a look at this:
#include<iostream>
using namespace std;
int main(){
int maximum = 6;
for(int i=maximum; i>0; i--)
{
for(int j=i; j<=maximum; j++)
{
cout << j;
}
cout << endl;
}
return 0;
}