diff options
Diffstat (limited to 'test/fibonacci2.c')
| -rw-r--r-- | test/fibonacci2.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/fibonacci2.c b/test/fibonacci2.c new file mode 100644 index 0000000..b8adb9a --- /dev/null +++ b/test/fibonacci2.c @@ -0,0 +1,8 @@ +int main (int argc, char** argv) { + int n = argc; + int result = 1; + for (; n; n = n - 1) { + result = result * n; + } + return result; +} |
