main()
{
int i=1,sum=0;
do
{
if(i%2==0) sum+=i;
i++;
}while(i<=100);
printf("%d\n",sum);
}
#include
main()
{
int xun,he;
xun=1;
he=0;
do
{
if(xun%2 ==0)
he+=xun;
xun++;
}while(xun<=100);
printf(\"1-100所有偶数的和是:%d\\n\",he);
}
main()
{
int
i=1,sum=0;
do
{
if(i%2==0)
sum+=i;
i++;
}while(i<=100);
printf("%d\n",sum);
}