You have the right number of dashes, you just do not print the number correctly. Let's look at why this is:
Which loop prints the numbers? The second nested loop.
What is he doing? It prints jwhere it jchanges from 1to 9, and jincreases by 2 each iteration of the cycle. In other words, 1, 3, 5, 7, 9that is confirmed at your exit
?
. , 1 first. , 3 . , 5 . .
? , , , (1, 3, 5,... i) (1, 3, 5,... i).
edit. . - , , . 3 , 5 , . - , ... . .
, . , , , .