Factorial Using Recursion Jian-An, Lin 林建安 2022 Jan 6th Algorithms C/C++, Recursion 12345678910111213141516#include <stdio.h>int factorial(int n){ if (n==0) { return 1; } else { return factorial(n-1)*n; }}int main(int argc, const char * argv[]) { int num = 5; printf("%d\n", factorial(num)); return 0;}