Diamond Pattern

in Hindi - Diamond Pattern



not yet

Source Code :

RUN#include <stdio.h>

int main()
{
int i, j, k, space=50;

for (i=0;i<15;i++){

for (j=0;j<space;j++)
{
printf(" ");
}
for (k=0;k<2*i-1;k++)
{
printf("*");
}
space--;
printf("\n");
}
for (k = 1;k <= 15-1;k++)
{
for (j=1;j<=space+1;j++)
printf(" ");

space++;

for (j = 1 ; j <= 2*(15-k)-1; j++)
printf("*");
printf("\n");
}
return 0;
}