728x90 AdSpace

Latest Article



program to print fibonacci series C C++ Code Example Code Download





//program to print fibonacci  series using loop write a program to display fibonacci series to n numbers C++ Recursion function explained using Fibonacci series
#include<stdio.h>
#include<conio.h>
void main(void)
{
int n,choice;
long int no1=0,no2=1, temp;
clrscr();
printf("How many fabbonoci numbers : ");
scanf("%d",&choice);
printf("\n\n%d  %d ",no1,no2);
for(n=3;n<=choice;n++)
   {
   printf("%ld ",no1+no2);
   temp=no1;
   no1=no2;
   no2=no1+temp;
   }
printf("\n\nPress any key to terminate...");
getch();
return(0);
}


no image
  • Title : program to print fibonacci series C C++ Code Example Code Download
  • Posted by :
  • Date : 07:30
  • Labels :






  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment