New answers tagged

0

You're on the right track. The problem is with the second and third for loops. They're nested! That has intermixed the process of printing leading spaces and hashes. There should be a loop to print the spaces, followed by the loop to print the hashes. This code has them mixed together. The hidden lesson here is that not all loops should be nested together,...


Top 50 recent answers are included