#include <stdio.h> int main() { int s = 0, k = 1; while(k<=100){ if (k % 2 != 0) s = s + k; else s = s - k; k++; } printf("s=%d", s); return 0; }