#include <stdio.h>
int main()
{
int i=1;
double t,m=1,n=2,X,sum=0;
while(i<=20)
{
X=m/n;
sum=sum+X;
t=n;
n=n+m;
m=t;
i++;
}
printf("%f\n",sum);
}
int main()
{
int i=1;
double t,m=1,n=2,X,sum=0;
while(i<=20)
{
X=m/n;
sum=sum+X;
t=n;
n=n+m;
m=t;
i++;
}
printf("%f\n",sum);
}