#include<stdio.h> int main() { int temp,a=1,b=2,num=1; double s,sum; sum=b/a; while(num<=20) { temp=b; b=a+b; a=temp; s=b/a; sum=sum+s; num++; } printf("%.1lf",sum); }