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?

Related Questions

What vitamin does a Christmas tree provide?

A Christmas tree provides vitamin C. In fact, a Christmas tree provides the same amount of vitamin C as 1,000 oranges would!


What words for Christmas begnning with c?

christmas tree, christmas lights, cupcake ,candy


Does Christmas tree have a capital c in it?

Yes.


Write a c program for creating a virus?

a c program for creat a virus


How do you solve the c programme of tree of hanoi?

It is the "Tower of Hanoi" and it is a puzzle. When you can solve the puzzle you can write the program, when you have learned enough to write simple programs. You do want to be able to write computer programs, don't you?


Where do we write main function in a c program?

Into the source program.


Write a c program to find Volume and surface area of cube?

Write a c program to compute the surface area and volume of a cube


How do you write a c program to analysis a circuit?

There is no need to write a C program for circuit analysis; there are lots of packages out there that already do that (for example, Spice).


How do you write a C program to check whether the number is odd or even Ps-using DEV complier?

To write a C program to determine if something is odd or even you need to be a programmer. To write a program in C is complicate and only done by programmers.


How do you write socket program in c?

For first find an example program.


How do you write a program in embedded c?

Use a text-editor program.


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.