#include<iostream>
using namespace std;
int main()
{
int x,inpt,ctrl;
x=1;
ctrl=1;
cout<<"Enter a number: ";
cin>>inpt;
while(ctrl<=inpt)
{
while(x<=ctrl)
{
cout<<x<<" ";
x++;
}
cout<<"\n";
ctrl++;
x=1;
}
system("pause");
}
can u please help me to invert this triangle?