September 1998
Intermediate to advanced
848 pages
20h 13m
English
Write a program that creates an array with 26 elements and stores the 26 lowercase letters in it. Also have it show the array contents.
Use nested loops to produce the following pattern:
$ $$ $$$ $$$$ $$$$$
Use nested loops to produce the following pattern:
F FE FED FEDC FEDCB FEDCBA
Have a program request the user enter an uppercase letter. Use nested loops to produce a pyramid pattern like this:
A
ABA
ABCBA
ABCDCDA
ABCDEDCBA
The pattern should extend to the character entered. For instance, the preceding pattern would result from an input value of E. Hint: Use an outer loop to handle the rows. Use three inner loops in a row, one to handle the spaces, one for printing letters in ascending order, and one for printing letters ...
Read now
Unlock full access