#include
using namespace std;
int main()
{
int n;
int row=1,val=1;
cout<<“enter the no of lines you want”<<endl;
cin>>n;
while(row<=n)
{
int col=1;
while(col<=row)
{
cout<<val;
val=val+1;
}
col=col+1;
}
row=row+1;
cout<<endl;
return 0;
}
I have written this but it is not running properly