>>763
#include<stdio.h>
#include<string.h>

#define HEIGHT 32
#define WIDTH 79

void triangle(char screen[HEIGHT][WIDTH], int center, int top, int size)
{
int i;

if(size<3) return;
for(i=0;i<size-1;i++) screen[top+i][center-i]=screen[top+i][center+i]='*';
for(i=0;i<size;i++) screen[top+size-1][center-i]=screen[top+size-1][center+i]='*';
triangle(screen, center, top, size/2);
triangle(screen, center-size/2, top+size/2, size/2);
triangle(screen, center+size/2, top+size/2, size/2);
}

int main(void)
{
char screen[HEIGHT][WIDTH];
int i;

memset(screen, ' ', sizeof(screen));
triangle(screen, WIDTH/2, 0, HEIGHT);
for(i=0;i<HEIGHT;i++)
{
printf("%.*s\n", WIDTH, screen[i]);
}
return 0;
}