1+1/2+1/3.....1/n=?
#include <stdio.h>void main(){ float t; int n,i; t=0; scanf("&d",&n); for(i=1;i<=n;i++){ t=t+(float)1/i; } printf("%f",t);}请问我代码的问题是?谢谢~~