forked from GitHub/gf-core
changed names of resource-1.3; added a note on homepage on release
This commit is contained in:
18
old-examples/gfcc/compiler/fibonacci.c
Normal file
18
old-examples/gfcc/compiler/fibonacci.c
Normal file
@@ -0,0 +1,18 @@
|
||||
int mx () {
|
||||
return 5000000 ;
|
||||
} ;
|
||||
|
||||
int main () {
|
||||
int lo ; int hi ;
|
||||
lo = 1 ;
|
||||
hi = lo ;
|
||||
printf("%d",lo) ;
|
||||
{
|
||||
while (hi < mx()) {
|
||||
printf("%d",hi) ;
|
||||
hi = lo + hi ;
|
||||
lo = hi - lo ;
|
||||
}
|
||||
}
|
||||
return ;
|
||||
} ;
|
||||
Reference in New Issue
Block a user