Game Design and Programming

How do i write a loop?