Fibonacci series in c

Fibonacci series using do while loop in c.

nithin KRISHNA
Your_caption_is_here
_________________________________________________

#include <stdio.h>

main()

{

int a=0,b=1,c,i=1,n; 

printf("enter n valuse:"); 

scanf("%d", &n);

do

{https://learn.justnk.in/p/our-kitchen-items.html

printf("%d\t", a);

c=a+b;

a=b;

b=c;

i++;

}

while(i<=n);

}

_________________________________________________


Post a Comment (0)
Previous Post Next Post

{getMailchimp} $title={Stay Informed} $text={Subscribe to our mailing list to get the new updates.}