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