This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Fibanocci serisi : 1, 1, 2, 3, 5, 8, 13, 17 . . .

************************************************************************/

   #include <stdio.h>

   int main ()
   {
      int a, b, c, i;

         a = 1;
         b = 1;

         for (i = 1; i <= 20 ;i ++)
         {
         printf (" %d", a);

         c = a + b;
         a = b;
         b = c;
         }

         printf ("\n");

         return 0;
   }



Parents Reply Children
No data