他怎么就报零了??
#include<bits/stdc++.h> using namespace std; int n; double m; int main(){ cin>>n; for(int i=1;i<=n;i++){ if(i%2==0){ n-=1.0/i; }else{ n+=1.0/i; } } cout<<fixed<<setprecision(4)<<m; }