Hello so for my c++ homework I need to write nested for loops that print an hourglass. I have searched through the forums and haven't really found a solid answer. I'm not looking for someone to give me the answer but really just provide assistance as I am struggling with the class and I cannot make office hours in time for when this is due.
So the program reads in how many #'s in the top row and how many rows. So if I read in 4 #'s in the top row and 3 rows, it will print:
####
_##_
#### (assuming _ is just a space)
Cannot be less than 3 in the top row and less than 1 row. The hourglass cannot lead to less than 3 #'s in the middle. So if I did like 15 in the top row and 3 rows it would print
I need to use nested for loops. I have the basics setup so if you type in invalid numbers it asks you to retype in numbers that work, but I really don't understand the nested for loops. Any help is appreciated, thank you!