8,16,24,32,50,48,56,64,72,80,88,96相加等于8(1+2+3+4+5+6+7+8+9+10+11+12)=8(1+12)12/2=8*13*6=8*78=624
#include main(){ int sum=0; for(int i=1;i<=100;i++){ if(i%8==0){ sum+=i; printf("%d\n",i); } } printf("sum=%d\n",sum); }