View Code of Problem 71

#include<stdio.h>
int main()
{
  int i=1,j=2,a,n;
  float sum=2.0;
  for(a=2;a<=10;a++)
  {
    n=j;
    j=i+j;
    i=n;
    sum+=j/i;
  }
  return 0;
}

Double click to view unformatted code.


Back to problem 71