oh thanks
I found the solution

for(i=1;i<=5;i++)
{
for(j=1;j<=i;i++)
{
cout<<"*"<<i;
}
cout<<"\n";
}