用do-while语句实现,1/1+1/2+1/3+....1/n>vlaue
#include "stdio.h"
int main(void){
float value,sum=0.0;
unsigned n=0;
while(1)
{
if(scanf("%f",&value)==1)
break;
}
do
{
sum+=(float)1.0/++n;
}
while(sum<value);
printf("%u\n",n);
return 0;
}