Search
 
SCRIPT & CODE EXAMPLE
 

C

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("
Enter the limit: ");
    scanf("%d",&n);
    for (int i = 1; i <= 10; i++)
    {
        printf("%d, ",a);
        c= a+b;
        a=b;
        b=c;
    }
    

    return 0;
}
Comment

PREVIOUS NEXT
Code Example
C :: thread in c 
C :: how to remove from a string c 
C :: successeur nombre chaine 
C :: reattach screen linux 
C :: execute maven project in cmd 
C :: how to read character from a string in c 
C :: c concatenate strings 
C :: dart in android studio 
C :: string compare c 
C :: format bool c 
C :: string input in c 
C :: stdio.h in c 
C :: write array of char to file in c 
C :: how to scan in c 
C :: c if 
C :: print short in c 
C :: c check if array is empty 
C :: multiplication table in c 
C :: warning: function returns address of local variable [-Wreturn-local-addr] 
C :: how i send custom data in model field rest_framework serializer 
C :: keep last n bits 
C :: windows forms picturebox change image 
C :: convert string to int error checking c 
C :: rfid rc522 code 
C :: to execute a program using C 
C :: c memcpy array 
C :: how to use pointer in c to print char 
C :: open a file in from terminal 
C :: boolean operators in c 
C :: marquee html code with right 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =