Holow diamond shape pattern

#include
using namespace std;
int main() {
int i,j,k,n;
cin>>n;
for(i=1;i<=n;i++)
{
for(j=1;j<=(n+1)-i;j++)
{
cout<<"";
}
for(k=1;k<(2
i)/2;k++)
{
cout<<" “;
}
for(j=1;j<=(n+1)-i;j++)
{
cout<<”";
}
cout<<endl;
}
for(i=2;i<=n;i++)
{
for(j=1;j<=i;j++)
{
cout<<"
";
}
for(k=1;k<=n;k++)
{
cout<<" “;
}
for(j=1;j<=i;j++)
{
cout<<”*";

You will be given a number N. You have to code a hollow diamond looking pattern. The output for N=5 is given in the following image.

no image attached here

you can check this code

i have commented each steps so you can understand very well

if you have any doubt feel free to ask

sir i am not able to c the image u sent

i said you have not attached any image here

ok i got ur answer let me c the solution first

is your doubt resolved now??