We start from zero int i = 0
print the current value
add one ++i
until the value is no longer under four
i < 4
.
for (int i = 0; i < 4; ++i)
{
Console.WriteLine
("Current: " + i);
}
We start from eight int i = 8
print the current value
remove two i -= 2
until the value is no longer over zero
i >
for (int i = 8; i > 0; i -= 2)
{
Console.WriteLine
("Current: " + i);
}