#include<iostream>
using namespace std;
#include<stdio.h>
#include<string.h>
int main()
{
int n;
printf("n e/n");
printf("- -----------/n");
for(n=0;n<=9;n++)
{
long double a=1.0;
int i=1;
long double j=1.0;
while(i<=n)
{
j=j/(double)i;
a=a+j;
i++;
}
char k[15];
sprintf(k,"%.9lf",a);
int L = strlen(k);
for (i=L-1;i>0;i--){
if(k[i]!='0') break; //字符串的零
if (k[i]=='0' && k[i-1] != '0')
{
if (k[i-1] == '.') k[i-1]='/0';
else
{if(i>4) break;else {k[i]='/0'; break;} }
}
if (k[i] == '.') break;
}
printf("%d %s/n",n,k); //写在return 后面的都没有用了
}
cin>>n;
return 0;
}