You are on page 1of 1

/*

Name: Shweta
Roll No:2974
Description: print
*
***
*****
*******
*/
#include<iostream>
using namespace std;
int main()
{
int n=0;
cout<<"enter the number of rows ";
cin>>n;
for(int x=0;x<=2*n-1;x+=2)
{
for(int y=0;y<=x;y++)
cout<<'*';
cout<<endl;
}
return 0;
}

You might also like