Print the following five patterns using nested loops:
***** 12345 ***** 12345 1
**** 1234 **** 1234 12
*** 123 *** 123 123
** 12 ** 12 1234
* 1 * 1 12345
Nested loops, row/column thinking, and formatted output.
Click here for explanation and solution.