Total members 11895 |It is currently Tue Dec 03, 2024 6:20 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





hai.


how to write a "c" program based on fibannoic series




Author:

Code:
/*fibannoic seriesi*/
main()
{
int f1=1,f2=1,terms,f3,i;
clrscr();
printf("enter the number of terms u want in series \n");
scanf("%d",&terms);

printf("%d %d ",f1,f2);

for(
i=0i<terms-;i++)
{
f3=f1+f2;
printf(" %d ",f3);
f1=f2;
f2=f3;
}
getch();



Author:

Code:
#include<stdio.h>
#include<conio.h>
 
void main()
{
   
int a=0,b=1,c,i;
   
clrscr();
   
printf("%d\t%d",a,b);
   for(
i=1;i<=8;i++)
   {
     
c=a+b;
     
printf("%d\t",c);
     
a=b;
     
b=c;
  }
 
getch();



Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
Post new topic Reply to topic  [ 3 posts ] 

  Related Posts  to : how to write a "c' program on fibannoic series
 Program for "Selection of arithmetic operations" in Java     -  
 Write a program in C++     -  
 write a program in c++ for the following...     -  
 how to write interface program     -  
 How to write a JSP Program to manipulate Last Date visited     -  
 Make your own Visual Basic 6 Version of "Tail for windows"     -  
 Temu Coupon Code $100 off |"|act796165|"| for New and Exis     -  
 How to save in a file the ASCII Characters? Like "☺"     -  
 Invalid unicode sequence error ("u")     -  
 help for "Note pad code in java"     -  









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com