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
  • And you wanted to say what?

    Doesn't look like an embedded program!

    Doesn't look like a program advanced enough that the rest of the world absolutely must get access to it!

    And if you wanted people to know about the Fibonacci (not Fibanocci) sequence, shouldn't you write something about the origin or the use of Fibonacci numbers (such as relation to the golden ratio etc)?

    And why not also emit N(0)?

Reply
  • And you wanted to say what?

    Doesn't look like an embedded program!

    Doesn't look like a program advanced enough that the rest of the world absolutely must get access to it!

    And if you wanted people to know about the Fibonacci (not Fibanocci) sequence, shouldn't you write something about the origin or the use of Fibonacci numbers (such as relation to the golden ratio etc)?

    And why not also emit N(0)?

Children