c语言中while循环步长大于2不存在后置运算??
1、
#include <stdio.h>
int main(void)
{
int i = 0, j;
puts("please input an integer.");
printf("j = "); scanf("%d", &j);
while (i < j)
{
printf("%d\n", i);
i = i + 2;
}
}
2、
#include <stdio.h>
int main(void)
{
int i = 0, j;
puts("please input an integer.");
printf("j = "); scanf("%d", &j);
while (i < j)
{
printf("%d\n", i += 2);
}
}