View Code of Problem 60

#include<stdio.h>
int main()
{
   int t,i,count;
  while(scanf("%d",&t)==1)
  {
     int a=1;
    int b=1;
    for(i=1;i<=t;i++)
    {
      count=a+b;
      a=b;
      b=count;
    }
    printf("%d\n",count);
  }
}

Double click to view unformatted code.


Back to problem 60