Can you set the condition so this loop repeats three times?

Since i starts at 1, the loop will repeat three times if it stops when i is less than 4.