answersLogoWhite

0

#include <stdio.h>

main()

{

int i,s,j,m=0;

printf("Christmas tree-\n");

for(i=1;i<=8;i++)

{

for(s=i;s<=8;s++)

{

printf(" ");

}

for(j=1;j<=i;j++)

{

printf("* ");

}

printf("\n");

m++;

if(m==3 m==7)

i=1;

}

}

User Avatar

Wiki User

12y ago

What else can I help you with?