在 c# 控制台中不使用带有 for 循环的模运算符的情况下给出 0-100 的偶数

Giving out even Numbers from 0-100 without using a Modulo-Operator with a for-loop in a c# Console

我只是找不到不使用模运算符就给出偶数的解决方案。我需要使用 for 循环,因为它是我的学校作业所要求的。 尽可能简单,因为我只是初学者 ._.

有多种方法可以做到这一点,但我不知道模与它有什么关系。 例如:

for(int i = 0; i <= 100; i += 2)
{
     // Only even numbers in i
}