Code:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
int i,j,k,l;
system("color fc");
for(i=0;i<=11;i++)
{
for(j=1;j<=i;j++)
{
printf(" ");
}
for(l=0;l<=2;l++)
{
printf("*");
}
for(k=10;k>=i;k--)
{
printf(" ");//two space
}
for(l=0;l<=2;l++)
{
printf("*");
}
printf("\n");
}
getche();
}
1-copy this code and paste on your dev++
2-then press F11