OK, so you write out what the output would be. You said you have an idea of what the solutions for all the problems are, but you still have to post your attempted solutions!

The first one loops 10 times, right? And each iteration of the loop it prints a line of output. So write out what those 10 lines would be, by manually following the logic of the code. Easiest thing to do is to grab a piece of paper, and follow the code as if you were the computer executing each statement.