Question:

C code of fibonacci series?

by Guest174  |  earlier

0 LIKES UnLike

 Tags:

   Report

1 ANSWERS


  1. #include
    #include
    void main()
    {
    int a=-1,b=1,c,i,n;
    printf("enter the number");
    scanf("%d",&n);
    for(i=1;i<=n;i++)
    {
    c=a+b;
    printf("%d",c);
    a=b;
    b=c;
    }
    getch();
    }

Question Stats

Latest activity: earlier.
This question has 1 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.