#include "stdio.h" void main() { int i; double n1=2.0,n2=1.0,n3,temp=0; for(i=0;i<20;i++) { temp+=n1/n2; n3=n2; n2=n1; n1+=n3; } printf("%f",temp); }