#include<iostream> #include <iomanip> using namespace std; int main(){ cout<<"n"<<" "<<"e"<<endl; cout<<"-"<<" "<<"-----------"<<endl; double m, n; m = 0; n = 1; m = 1; cout<<0<<" "<<1<<endl; for(int i = 1; i < 10; i++){ n = 1; for(int j = i ; j > 0; j--){ n = j * n; } m = m + 1 / n; if(i < 3){ cout<<i<<" "<<setprecision(10)<<m<<endl; }else{ cout<<i<<" "<<fixed<<setprecision(9)<<m<<endl; } } }