速求帮助!#include<stdio.h>void main(){float sum = 1.0, x = 2.0, n;int a = -1;scanf("%f", &n);while(x<=n){ a = (-1) * a; sum = sum + a/x; x++;}printf("sum=%.3f\n", sum);return 0;}