I'm wondering how to create the following shape with loops. We worked on a few others in class, but I wasnt overly comfortable with them, and wanted to try some examples from our textbook, can anyone help? Thanks! :)
Where I want the o's, and the -'s are blank spaces
Try understanding the underlying mathematical pattern first.
Each row has 19 characters on it and there is a difference of 1 in the pattern I see between each row.
Think of every row as a sequence of 5 numbers counting groups of characters.
0 1 17 1 0
1 2 13 2 1
2 3 9 3 2
3 4 5 4 3
4 16 4 0 0 <- the middle rows are the only exception to the pattern
4 16 4 0 0
reverse the first four rows here