100以内偶数之和do...while语句怎么不出来,
#include<stdio.h>void main()
{
int a,b;
a=0;
b=2;
do
{
b=2*b;
a=a+b;
}
while(b<=50);
printf("2+4+6+.....+100=%d\n",a);
}
#include<stdio.h> int main() { int a,b; a=0; b=0; do { b = b + 2; a = a + b; /*看不出漏掉什么了,还有注释都注释错了*/ }while(b<100); printf("2+4+6+.....+100=%d\n",a); }