Think of the pattern in groups of two lines. Since there are an odd number of lines to be printed, either print the 1 before a loop OR print the 10 after the loop.
You can use a for-loop or a while loop, but either way I'd print two lines in the body of the loop. If using a for loop, remember that the loop control variable can be increased by more than 1 each time through the loop by using an assignment statement like i = i + 3 instead of the more common i++ or i--.