Sunday, 21 January 2018

Program for FIBANOCHI


Program for FIBANOCHI
#include<stdio.h>
#include<conio.h>
main()
{
int a,i=0,f0=0,f1=1,f;
clrscr();
printf("enter the value of a");
scanf("%d",&a);
printf("%d\n",f0);
printf("%d\n",f1);
do
{       f=f0+f1;

printf("%d\n",f);
f0=f1;
f1=f;
i++;
}while(i<a-1);
getch();
}




Related Posts:

  • Introduction To Functions Introduction To Functions Functions are building blocks of C. The general form of C (User-defined) function is:       Return-type-function-name(parameter list)       parameter declaration &… Read More
  • GO TO Statement GO TO Statement This Keyword is used when we want to transfer the control to some point in the program which is not in the normal, step by step sequence of a program.  It takes control from one place to another un… Read More
  • STANDARD LIBRARY FUNCTIONS STANDARD LIBRARY FUNCTIONS Arithmetic Functions: abs --> Returns the absolute value of an integer. cos --> Calculates cosine. cosh --> Calculates hyperbolic cosine. exp --> Raises the exponential e to the xt… Read More
  • Parameter Passing Technique Parameter Passing Technique The parameter passing mechanism refers to the actions taken regarding the parameters when a function is invoked. There are two parameter passing techniques available in C. They are: 1) Call B… Read More
  • Function Declaration and prototype Function Declaration and prototype It is one of the most important feature of ANSI C.A function prototype tells the compiler the type of data returned by the function, the number of arguments the function expects to r… Read More

0 comments:

Post a Comment