#include<stdio.h> main() { int x,y,z,f; x=1; y=0; z=2; f=0; while(x<=100) { y=x+y; x=x+2; } while(z<=100) { f=f+z; z=z+2; } printf("奇数和为%d,偶数和为%d",y,f); }