reorganised code examples

This commit is contained in:
2026-02-05 01:10:31 +00:00
parent 89762b54e3
commit 2f91c4127c
5 changed files with 19 additions and 11 deletions
+11
View File
@@ -0,0 +1,11 @@
int factorial(int n) {
if (n <= 1) {
return 1;
}
return n * factorial(n - 1);
}
int main() {
int res = factorial(3);
return res;
}