This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Q: Write a method to display filled right-hand triangles using characters. The height of the triangle and the character used to display a triangle should be passed as method parameters. Note that your code can only output one character at a time.
filledTriangle(4,�*�) $$$* $$** $*** ****
i know how to write a method to display * ** *** ****
but cant do Qu , anyone help me??? [ May 14, 2006: Message edited by: Russel Fieldhouse ]
Here's a thought to consider: as you clearly know, a "for" loop can have another "for' loop inside of it. What might not have occurred to you is that a for loop can have two or more for loops inside it, one after the other, that will execute in sequence. So, for example,