Begin by studying our notes on looping and the Debug window. When you thoroughly understand them, write a program like this compliment program.
Use a For loop with a maximum of 10 iterations, and check input validity. Also test your loop using extreme values -- what happens if the user requests 0 or 1 iteration? Ten iterations?