please dont rip this site

Language Ccpp Cref Contrib Or_practical_c 05_1.C

#include <stdio.h>
int   old_number;     /* previous Fibonacci number */

int   current_number; /* current Fibonacci number */

int   next_number;    /* next number in the series */

main()
{
    /* start things out */
    old_number = 1;
    current_number = 1;

    (void)printf("1\n");    /* Print first number */

    while (current_number < 100) {

        (void) printf("%d\n", current_number);
        next_number = current_number + old_number;

        old_number = current_number;
        current_number = next_number;
    }
    return (0);
}


file: /Techref/language/ccpp/Cref/CONTRIB/OR_PRACTICAL_C/05_1.c, 0KB, , updated: 1995/2/5 07:13, local time: 2024/12/22 22:44,
TOP NEW HELP FIND: 
3.137.198.181:LOG IN

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF="http://massmind.org/techref/language/ccpp/Cref/CONTRIB/OR_PRACTICAL_C/05_1.c"> language ccpp Cref CONTRIB OR_PRACTICAL_C 05_1</A>

Did you find what you needed?

 

Welcome to massmind.org!

 

Welcome to massmind.org!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .