source:
Deliverables/D2.2/8051/tests/clight/fib.c.expected
@
486
Last change on this file since 486 was 486, checked in by , 10 years ago | |
---|---|
File size: 128 bytes |
Rev | Line | |
---|---|---|
[486] | 1 | int fib (int n) |
2 | { | |
3 | if (n < 2) | |
4 | return 1; | |
5 | else { | |
6 | return fib (n-1) + fib (n-2); | |
7 | } | |
8 | } | |
9 | int main () { | |
10 | return fib (10); | |
11 | } |
Note: See TracBrowser
for help on using the repository browser.