#include<stdio.h> int main() { int a=0,b=0,n; for(n=1;n<=100;n++) { if(n%2==0) { a=n+a; } else b=n+b; } printf("a=%d,b=%d",a,b); return 0; }