AutoBard-Coder / codes /generated_code.c
Haseeb
Added files
a01cd1a
raw
history blame contribute delete
239 Bytes
#include <stdio.h>
int main() {
int number = 10; // Hardcode the input value
int factorial = 1;
for (int i = 1; i <= number; i++) {
factorial *= i;
}
printf("The factorial of %d is: %d
", number, factorial);
return 0;
}