#include "stdio.h" main() { int n=1; float sum=0.0; while((float)1/n>=1e-4) { sum=sum+(float)1/n; n=n+2; } printf("sum=%f/n",sum); getch(); }