#include <iostream>
using namespace std;
int main()
{
int n,k,i,j;
cin>>n;
k=1;
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++,k++)
{
cout<<k;
}
cout<<endl;
}
//cout<<"Hello World";
return 0;
}
using namespace std;
int main()
{
int n,k,i,j;
cin>>n;
k=1;
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++,k++)
{
cout<<k;
}
cout<<endl;
}
//cout<<"Hello World";
return 0;
}
No comments:
Post a Comment