answersLogoWhite

0

C orogram for Fibonacci series

User Avatar

Anonymous

13y ago
Updated: 8/17/2019

#include<stdio.h>

#include<conio.h>

void main()

{

printf("The first 20numbers of Fibonacci series are:");

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

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

while(n<20)

{

c=a+b;

printf("\t %d", &c);

a=b;

b=c;

n++;

}

getch();

}

User Avatar

Wiki User

13y ago

What else can I help you with?