#include #inlcude int main(int argc, char *argv[]){ int sum_odd = 0 , sum_even = 0; for(int i = 1 ; i <= 100; i ++) { if(i%2 == 0) sum_even += i; else sum_odd += i; } printf("奇数和为:%d,偶数和为:%d\n",sum_odd , sum_even ); return ;}