source: Deliverables/D2.2/8051/tests/clight/fib.c

Last change on this file was 486, checked in by ayache, 9 years ago

Deliverable D2.2

File size: 128 bytes
RevLine 
[486]1int fib (int n)
2{
3  if (n < 2) 
4   return 1;
5  else {
6    return fib (n-1) + fib (n-2);
7  }
8}
9int main () {
10 return fib (10);
11}
Note: See TracBrowser for help on using the repository browser.