Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/coroutine/fibonacci.c

    rae4af81 radb6b30f  
    66//
    77// fibonacci.c -- 3-state finite-state machine
     8
    89//
    910// Author           : Thierry Delisle
    1011// Created On       : Thu Jun  8 07:29:37 2017
    1112// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Aug 18 11:21:58 2018
    13 // Update Count     : 24
     13// Last Modified On : Thu Aug 16 08:18:16 2018
     14// Update Count     : 20
    1415//
    1516
     
    3839int main() {
    3940        Fibonacci f1, f2;
    40         for ( 10 ) {                                                                            // print N Fibonacci values
     41        for ( int i = 1; i <= 10; i += 1 ) {
    4142                sout | next( f1 ) | next( f2 ) | endl;
    4243        } // for
Note: See TracChangeset for help on using the changeset viewer.