Just in case: "Odd" Triangle Challenge (for me)

This is a discussion on Just in case: "Odd" Triangle Challenge (for me) within the C Programming forums, part of the General Programming Boards category; This new thread is practically a continuation of my last Triangle problem. The reason I posted this separately is just ...

The difference is apparent. The user must input a positive odd integer value. The amount of stars printed on each line increases by 2 as we go from line 1 up to the middle part, where 11 (for instance) or the input value of stars is printed. Going downhill, the number of stars begins to decrease by 2, until only 1 star is printed (like in the beginning). I've tried to make some changes on the original triangle program code, but so far I haven't suceeded.

Why do you need help? If you can print the triangle right side up, you can print it upside down. What's the problem? And stop I am sillyI am sillyI am sillyI am sillying spamming the board! Read the Announcements.

?

What are you talking about? I stated clearly what the triangle should look like. If you read it, it says the number of stars increases by 2 as I reach the "height" or tip of the triangle.
The changes to be made are in my for loops, if my guessing's right.

> void PrintTop(int linenumber); //this function will print the top triangle portion
> void PrintBottom(int linenumber2); //this one will print the bottom portion
If you look closely, you'll see that both functions do the same thing - namely print 'n' stars

> assert(height>0); //error handler
Use if statements for user input not assert()
assert() is used for trapping programming errors

> The amount of stars printed on each line increases by 2 as we go from line 1 up to the middle part
Try swapping which loops get the +2 and -2
You have them on the inner loops (which result in flat triangles)