for loops all variations techniques  with examples