/* Program to print the following output
**********
**** ****
*** ***
** **
* *
** **
*** ***
**** ****
**********
*/
#include <stdio.h>
int main()
{
int i, j;
//Loop for printing upper half part of the pattern
for(i=1; i<=5; i++)
{
for(j=i; j<=5; j++)
{
printf("*");
}
for(j=1; j<=(2*i-2); j++)
{
printf(" ");
}
for(j=i; j<=5; j++)
{
printf("*");
}
printf("\n");
}
//Loop for printing lower half part of the pattern
for(i=1; i<=5; i++)
{
for(j=1; j<=i; j++)
{
printf("*");
}
for(j=(2*i-2); j<(2*5-2); j++)
{
printf(" ");
}
for(j=1; j<=i; j++)
{
printf("*");
}
printf("\n");
}
return 0;
}