#include <stdio.h> int main () { double s = 1; double i = 2; while (i<=100) { s = s-(1/i); i++; } printf ("s=%f\n",s); return 0; }