#include
using namespace std;
int main()
{
int n,i,j;
cout<<“enter the number\n”;
cin>>n;
cout<<“1\n”;
if(n!=1)
{
for(i=1;i<n;i++)
{
cout<<i;
for(j=1;j<i;j++)
cout<<“0”;
cout<<i;
cout<<"\n";
}
}
}
please tell mistake
#include
using namespace std;
int main()
{
int n,i,j;
cout<<“enter the number\n”;
cin>>n;
cout<<“1\n”;
if(n!=1)
{
for(i=1;i<n;i++)
{
cout<<i;
for(j=1;j<i;j++)
cout<<“0”;
cout<<i;
cout<<"\n";
}
}
}
please tell mistake
sir same to tha mera bhi
ye nahi likna tha na, bus jaisa output format me mention hai usi format me likna hai