i <=100i*jj = -j
#include <stdio.h> int main() { int i = 1, j = 1, s = 0; while(i <= 100) { s += i*j; i++; j = -j; } printf("s = %d\n",s); }