practice_C

Number Patterns

Exercise

Print the following five patterns using nested loops:

*****       12345       *****       12345       1
****        1234        ****        1234        12
***         123         ***         123         123
**          12          **          12          1234
*           1           *           1           12345

Concepts practiced

Nested loops, row/column thinking, and formatted output.

Click here for explanation and solution.