#include<stdio.h> int main() { int n = 1, a = 2, b = 1,d = 0; double c = 0, j = 0; while (n <= 20) { c = (double)a / (double)b; d = a + b; b = a; a = d; j = j + c; n++; } printf("%f", j); return 0; }