code:
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int main()
{
int row,col;
system("color 03"); // zero foe black and f for white
for(row=0;row<=2;row++)
{
for(col=1;col<=17;col++)
{
if(col>=3-row&&col<=6+row||col>=12-row&&col<=15+row)
printf("%c",1);
else
printf(" ");
}
printf("\n");
}
for(row=0;row<9;row++)
{
for(col=1;col<=17;col++)
{
if(col>=row+1&&col<=17-row)
printf("%c",1);
else
printf(" ");
}
printf("\n");
}
return 0;
}