Write a program to display the output below: You may input number of rows and columns.
*
* * *
* * * * *
* * * * * * *
* * * * * * * * *
* * * * * * * * * * *
using namespace std;
int main()
{
	int n=0,i;
	while(n<6)
	{
		for(i=0;i<(2*n+1);i++) cout<<"* ";
		cout<<endl;
		n++;
	}
	return(0);
}
Comments