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

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

Deliverable D2.2

File size: 128 bytes
Line 
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.