need help !!!!
anyone know how to draw a christmas tree in c program with 3 for loop ????????????

Here's the pseudocode, a little bit of thinking wouldn't have hurt you would it?

subalg. printChristmasTree(){
    for (i<-0, i<5) do
        for (j<-0, j<=i*2) do
            for (k<-5, downto i) do
                if (j=0) then
                    print space
                end_if
            print '*'
            end_for
        print new line
        end_for
    @print base of the tree
    end_for
end_Subalg.
commented: ??? +0

wht is the "do" represent ??? also a loop ???

wht is the "do" represent ??? also a loop ???

Represents an action, what should the for DO with the given conditions/inputs.

commented: isn't that what my link said? ;o) +14
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.