ASCII Art Examples
From CompSciWiki
Back to the Program-A-Day homepage
ProblemIn this sample problem, we'll examine how to create a number of different "pictures" using two nested loops and printing characters to the console. These pictures include: a solid box, a solid box with a blank "X", an "X", a hollow box, a hollow box with an "X", and a right triangle. The program will begin by prompting the user for a number. This number will represent the size for each picture that will be printed to the console. In essence, the size will represent the number of rows and columns for each picture. |
SideSectionTitle
An image or By Students section | |
---|---|---|
SolutionWrite solution here... | ||
CodeSolutionCode goes here. Please DO NOT put your code in <pre> tags! |