
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
This c program generates and prints the first 20 numbers in the fibonacci series. The series is a sequence of numbers in which each number is the sum of the two preceding ones, starting from 0 and 1.
Typology: Exercises
1 / 1
This page cannot be seen from the preview
Don't miss anything!
#include<stdio.h> #include<conio.h> void main (void) { int count,a=0,b=1,c; clrscr(); printf ("The Fibonacci Series to the given range is:\n"); for (count=1;count<=20;count++) { c=a+b; b=a; a=c; printf ("%d\n",c); } getch(); }