Originally Posted by
GregBrannon
Here's an example of an ASCII Art problem from "C: How to Program, 6th Edition," Deitel.
4.16 (Triangle Printing Program) Write a program that prints the following patterns separately, one below the other. Use for loops to generate the patterns. All asterisks
should be printed by a single printf statement of the form printf( "*" ); (this causes the asterisks to print side by side). [Hint: The last two patterns require that each line begin with an appropriate number of blanks.]
(A)
*
**
***
****
*****
******
*******
********
*********
**********
(B)
**********
*********
********
*******
******
*****
****
***
**
*
(C)
**********
*********
********
*******
******
*****
****
***
**
*
(D)
*
**
***
****
*****
******
*******
********
*********
**********
Extra credit:
*
***
*****
*******
*********
*******
*****
***
*
Hi Greg, could you please see my code located here:
http://www.javaprogrammingforums.com...umns-form.html
I have to do something similar to this, and my code is listed there as well.