answersLogoWhite

0


Best Answer

#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

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c program for Christmas tree?
Write your answer...
Submit
Still have questions?
magnify glass
imp
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!


Does Christmas tree have a capital c in it?

Yes.


What words for Christmas begnning with c?

christmas tree, christmas lights, cupcake ,candy


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.


What is the program to write route cipher?

c#