#include
using namespace std;
int main() {
int i, j, N;
cout << “enter the value of N:”;
cin >> N;
for(i=1; i<=N; i++ )
{
for(j=i; j<=N; j++ )
{
cout<<("");
}
for(j=1; j<=(2i-1); j++ )
{
cout<<(" “);
}
for(j=i; j<=N; j++ )
{
cout<<(”*");
}
cout<<"\n";
}
for(i=1; i<=N; i++ )
{
for(j=1; j<=i; j++ )
{
cout<<("*");
}
for(j=(2*i-2); j<=(2*N-2); j++ )
{
cout<<(" ");
}
for(j=1; j<=i; j++ )
{
cout<<("*");
}
cout<<"\n";
}
return 0;
}