# include
int main() {
int i,sum = 0;
for(i = 2; i <= 100; i += 2)
sum += i;
printf("%d\n",sum);
return 0;
}
#include
int main(void)
{
int i, sum;
sum = 0;
for(i=1; i<101; i++)
{
if(i%2 == 0)
{
sum = sum + i;
}
}
printf("sum = %d\n", sum);
return 0;
}