Pages

Thursday, 25 January 2018

Recursion in C Programming Language

#include <stdio.h>

int main() {
    /* testing code */
    printf("1! = %i\n", factorial(1));
    printf("3! = %i\n", factorial(3));
    printf("5! = %i\n", factorial(5));
}


/* define your function here (don't forget to declare it) */