Examples of programming questions in loops