#include "iostream.h" void main() { int i(0),a(1); double x(1),s(0); while(x>=0.0001) { i=i+1; a=a+i-1; x=1/a; s=s+x; } cout< }