这个程序的警告如何修改
[code#include <stdio.h>float H(int n,float a)
{
if(n==1)
return (a+1);
else
return H(n-1,a+1.0/n);
}
int main(void)
{
int n;
scanf("%d",&n);
printf("%f",H(n,0));
printf("\n");
}][/code]
warning C4244: 'function' : conversion from 'double ' to 'float ', possible loss of data