#include <stdio.h>
int main( void )
{
static int count = 0;
for (int x = 0; x < 101; x++)
{
if (x % 2 == 0) /*if x is even...*/
count++; /*add 1 to count.*/
}
printf("There are %d even numbers./n", count);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266577.html