#include<stdio.h> int main() { double i, s = 0; for (i = 1; i <= 100; i++) { s = s + 1 / i; s = -s; } printf("sum is %lf.", s); return 0; }