Horje
C program to display fibonacci serice Code Example
C program to display fibonacci serice
//display fibonacci serice
#include<stdio.h>
#include<conio.h>
int main()
{
    int a=1,b=1,c=0,n;
    printf("\nEnter the limit: ");
    scanf("%d",&n);
    for (int i = 1; i <= 10; i++)
    {
        printf("%d, ",a);
        c= a+b;
        a=b;
        b=c;
    }
    

    return 0;
}




C

Related
gtk widget change window title Code Example gtk widget change window title Code Example
gsl matrix invert Code Example gsl matrix invert Code Example
Talk about the difference between call by reference and call by value and in C language with example? Code Example Talk about the difference between call by reference and call by value and in C language with example? Code Example
enum case statement in c Code Example enum case statement in c Code Example
double pointers in c Code Example double pointers in c Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9