Mock up of the software. Fully generated with Gemini 3.8 as a proof of concept.
This commit is contained in:
1 parent
7bc854e6b0
commit
ea9d88ce3c
84 files changed
+115526
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#include <stdio.h>
|
||||
|
||||
// Factorial calculation with recursive calls
|
||||
long long factorial(int b) {
|
||||
if (b <= 1) {
|
||||
return 1;
|
||||
}
|
||||
return (long long)b * factorial(b - 1);
|
||||
}
|
||||
|
||||
int min(int a, int b)
|
||||
{
|
||||
int result = (a >= b) ? b : a;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
int main(void) {
|
||||
int input = 5;
|
||||
|
||||
input = min(input, 10);
|
||||
|
||||
long long result = factorial(input);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user