Here's one possible algorithm to print even numbers from 1 to 100:
Start with a variable i equal to 1.
Check if i is less than or equal to 100.
If i is less than or equal to 100, check if i is even (i.e. if i is divisible by 2 with no remainder).
If i is even, print i.
Increment i by 1.
Go back to step 2.
End the program.
start
/ \
/ \
/ \
/ \
v v
i = 1 i <= 100
\ /
\ /
\ /
\ /
v v
i%2==0?
/ \
/ \
/ \
/ \
v v
print i i++
\ /
\ /
\ /