//#include "stdafx.h"//If the vc++6.0, with this line.#include "stdio.h"int main(void){ int i; double s,tmp; for(s=0.0,tmp=i=1;(tmp=1.0/i)>=0.00001;s+=tmp,i+=2); printf("The result is %f\n",s); return 0;}