#include <stdio.h>
// Recursive factorial function
int factorial(int n) {
if (n == 0 || n == 1) {
return 1;
} else {
return n * factorial(n - 1);
}
}
int main() {
// Recursive factorial function example
int num = 5;
int result = factorial(num);
printf("Factorial of %d: %d\n", num, result);
return 0;
}