#include<stdio.h>
int main()
{
    int num , i , n1=0 , n2 =1 , n3 ;

    printf(" Enter the number : ");
    scanf(" %d ", &num);

    for( i=1 ; i<=num ; i++)
    {
        printf(" %d ", n1);
        n3 = n1+n2;
        n1 = n2 ;
        n2 = n3;
    }
    return 0;
}



OUTPUT :

Enter the number : 5 
0  1  1  2  3

For Other Programs Visit The WebSite:-   https://www.techapurba.com/

Follow Me On Social Media :-


For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/