> any chance you could alter the code so it matches mine and will run!

No, sorry, just giving you the answer doesn't help you in any way. I'll give you pointers and help you solve problems. Programming is a skill learnt be doing not by looking at other people's complete code examples.

Best advice I can give you as a newcomer is to Keep It Simple, Stupid (KISS). Just get the minimum possible stuff working first, then extend afterwards. Even as a seasoned programmer of...hmm, 2009-1981=28 years! I still do this.

Besides I don't think you're actually that far off solving this. Just do the loop test I suggested and see if you can find all the problems with that line of code. I assume that the intent of your loop is to count down from X to 1, so the output should be 10 9 8 7 6 5 4 3 2 1, but what is it and how can you fix it so that it does that?

One thing worth knowing is that for (A; B; C) { D; } is equivalent to A; while (B) { D; C; } (yes, really D then C) so as an experiment you might try rewriting the for loop as a while loop.