8)
#include<iostream>
using namespace std;
int main()
{int n,i,j;
cin>>n;
for(i=1;i<=n;i++)
{for(j=1;j<=i;j++)cout<<1<<" ";cout<<endl;}
return 0;
}
9)
#include<iostream>
using namespace std;
int main()
{int n,i,j;
cin>>n;
for(i=n;i>=1;i--)
{for(j=i;j>=1;j--)cout<<1<<" ";cout<<endl;}
return 0;
}
Sper ca te-am ajutat , coronita ??