hi! i m Gaurav. i m facing a problem in printing a series
i have print the series related to it.
like
*
* *
* * *
* * * *
* * * * *
but i m facing a problem in printing the following series:
*
* *
* * *
* * * *
can anyone help me out? i will be thankful
i m trying this logic:
for(i=1;i<=n;i++)
{
for(j=1;j<=i;j++)
{
cout<<"*";
}
cout<<endl;
}
now wt to do in the inner loop i a fail to understand
so plz help me