diff options
| author | 2025-11-16 12:11:18 +0100 | |
|---|---|---|
| committer | 2025-11-16 12:11:18 +0100 | |
| commit | 111e71e1511b2abff9176bd6c714c8da796f770e (patch) | |
| tree | 352b723c9144c844037447bd865a8366378df7a5 /test/fact.c | |
| parent | b0c0f2d2d885c5901de08ed08dba9fff079bf6e3 (diff) | |
basic automated testing
Diffstat (limited to 'test/fact.c')
| -rw-r--r-- | test/fact.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/fact.c b/test/fact.c deleted file mode 100644 index 1147d8f..0000000 --- a/test/fact.c +++ /dev/null @@ -1,13 +0,0 @@ -int -fact(int x) -{ - int y = 1; - while (x >= 1) { - y *= x; - x -= 1; - } - return y; -} - -extern int printf(); -int main() { printf("6! = %d\n", fact(6)); } |