If it is allowed to "translate" your question...
Actually we have a string "1234567890".
We need to type in each line a string that contains N characters from position i plus the same N characters but in the opposite direction.
In each line we need to increase N and i.
If this is right, I attached a c-file (main.c) that does it. I compiled in VS 2005.





by: Infinity08Posted on 2009-09-19 at 23:58:34ID: 25376141
Good start
The k loop you have now will have to be split up in two loops. In the pyramid example you posted, on each row, the number first count up towards the middle of the row, and then down again.
So, if you have one loop for counting up, and one for counting back down again, you're all set.
Note also that you'll have to take care not to use 10, but to use 0 instead.