diff options
| author | Carson Fleming <cflems@cflems.net> | 2026-07-21 14:36:02 -0700 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2026-07-21 14:36:02 -0700 |
| commit | 0cabbd2a0853c332c82af621b8716643741d758a (patch) | |
| tree | 4d1772e07ff1b81e00b563f877c6f1ead3305a8d /test/factorial2.c | |
| parent | f87e953223b7d498fc5401247952c08ab1e08f93 (diff) | |
| download | ccc-0cabbd2a0853c332c82af621b8716643741d758a.tar.gz | |
more faithful grammar
Diffstat (limited to 'test/factorial2.c')
| -rw-r--r-- | test/factorial2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/factorial2.c b/test/factorial2.c new file mode 100644 index 0000000..867b709 --- /dev/null +++ b/test/factorial2.c @@ -0,0 +1,7 @@ +int main (int argc, char** argv) { + int result = 1; + for (int n = argc; n; n = n - 1) { + result = result * n; + } + return result; +} |
