need help !!!!
anyone know how to draw a christmas tree in c program with 3 for loop ????????????
on93 -7 Junior Poster in Training
Recommended Answers
Jump to PostHere'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 …
All 4 Replies
Lucaci Andrew 140 Za s|n
napninjanx commented: ??? +0
on93 -7 Junior Poster in Training
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Lucaci Andrew 140 Za s|n
WaltP 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.