wyx123456789 @ 2019-10-16 14:03:07
int main()
{
int K,i;
double S=0.0;
scanf("%d",&K);
for(i=1;S<K;i++)
S=S+1/i;
printf("%d",i);
return 0;
}
by Pisces @ 2019-10-17 21:56:42
@WJY01
by Pisces @ 2019-10-17 21:57:10
然后才退出循环
by WJY01 @ 2019-10-17 22:13:40
@Pisces 想通了谢谢