CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Mon, 11 Aug 2025 04:21:27 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20080612194408
location: https://web.archive.org/web/20080612194408/https://www.daniweb.com/code/snippet860.html
server-timing: captures_list;dur=0.855145, exclusion.robots;dur=0.023539, exclusion.robots.policy;dur=0.014137, esindex;dur=0.012185, cdx.remote;dur=128.248485, LoadShardBlock;dur=254.856155, PetaboxLoader3.datanode;dur=119.019521, PetaboxLoader3.resolve;dur=66.614849
x-app-server: wwwb-app202
x-ts: 302
x-tr: 416
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
set-cookie: wb-p-SERVER=wwwb-app202; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Mon, 11 Aug 2025 04:21:29 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Thu, 12 Jun 2008 19:43:41 GMT
x-archive-orig-server: Apache/2.2
x-archive-orig-x-powered-by: PHP/5.1.6
x-archive-orig-set-cookie: bblastvisit=1213297628; expires=Fri, 12-Jun-2009 19:43:41 GMT; path=/; domain=.daniweb.com
x-archive-orig-set-cookie: bblastactivity=0; expires=Fri, 12-Jun-2009 19:43:41 GMT; path=/; domain=.daniweb.com
x-archive-orig-cache-control: private
x-archive-orig-pragma: private
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Thu, 12 Jun 2008 19:44:08 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 12 Jun 2008 19:44:08 GMT", ; rel="memento"; datetime="Thu, 12 Jun 2008 19:44:08 GMT", ; rel="next memento"; datetime="Sat, 06 Sep 2008 14:56:18 GMT", ; rel="last memento"; datetime="Sat, 06 Sep 2008 14:56:18 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_4_20080612185533_crawl107-c/52_4_20080612194304_crawl104.arc.gz
server-timing: captures_list;dur=0.725176, exclusion.robots;dur=0.036526, exclusion.robots.policy;dur=0.021854, esindex;dur=0.017150, cdx.remote;dur=1275.127901, LoadShardBlock;dur=357.885617, PetaboxLoader3.resolve;dur=316.652805, PetaboxLoader3.datanode;dur=157.670736, load_resource;dur=190.939697
x-app-server: wwwb-app202
x-ts: 200
x-tr: 1895
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
brighton's fibboncci sequence - c
brighton's fibboncci sequence
•
•
•
•

What is DaniWeb IT Discussion Community?
You're currently browsing the C section within the Software Development category of DaniWeb, a massive community of 348,137 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,295 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C advertiser:
ITERATIVE AND RECURSIVE PROGRAMS.THESE PROGRAMS HAVE BEEN TESTED AND RUN VERY WELL.ENJOY
# include<stdio.h> # include<conio.h> # include<stdlib.h> void main() { int i,x,fib,a=0,b=1; textbackground(BROWN); textcolor(BLUE); clrscr(); printf("\t\t THIS PROGRAM GENERATES THE FIBONACCI SEQUENCE\n\n\n\t"); printf("ENTER THE FIBONACCI NUMBER THAT YOU WANT:\t"); scanf("%d",&fib); if(fib==0) printf("\n0"); else if(fib==1) printf("\n%d\t%d",a,b); else if(fib<0) printf("THE NUMBER IS INVALID"); else if(fib>1) { printf("\n%d\t%d",a,b); for(i=2;i<=fib;i++) { x=a; a=b; b=x+b; printf("\t%d",b); } getch(); }} //recursive function // # include<stdio.h> // # include<conio.h> // int fib(int num); // int main() // { // clrscr(); // int num,loop; // printf("enter the fibonacci number"); // scanf("%d",&num); // for(loop=0;loop<=num;loop++) // printf("%d",fib(loop)); // getch(); // return 0; // } // int fib(num) // { // if(num==0) // return 0; // else if(num==1) // return 1; // else if(num>1) // return (fib(num-1)+fib(num-2) // return 0; // }
Post Comment
•
•
•
•
DaniWeb Marketplace (Sponsored Links)
Forum Highlights
- C Forum
- Today's Posts
- Unanswered Threads
Related Features
DANIWEB FEATURE INDEX
Advertisement
Statistics