well, think about how you would do this:
assign a variable inside your program.
you would look between the curly braces of main, right? RIGHT!
so if you want to nest something in side a loop, just place it within the curly braces. Don't get confused about what braces match! You can also nest as many things as you wish, NO limit