I got totally confused with the nestled for statements.
I am trying to write a program which prints a hourglass from asterisks:
First line: 7 asterisks, next line: 5, then 3, then 1, next 3, next 5 and 7.
Please could someone explain what I am doing wrong. I know there is a big confusion but I don't wanna give up.
Each of those "output" lines is itself a little for loop, or even better, a function call that contains a little for loop. You should start by writing that simple output function so that you can then easily experiement with the logic of your code.