writing a program using loop structure, need the equation to produce all even numbers from 2-100 to print out each time I go through the loop

loop {

for (i=2;i<=100;i+=2) {print i}
}