C program to find the factorial of a given number using recursion
kw.c
Output
kodingwindow@kw:~$ gcc kw.c
kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to find the factorial of a given number ——————————————————————————————————————————— Enter the number 0 The factorial of 0 is 1 ——————————————————————————————————————————— kodingwindow@kw:~$ ./a.out ——————————————————————————————————————————— Program to find the factorial of a given number ——————————————————————————————————————————— Enter the number 25 The factorial of 25 is 7034535277573963776 ——————————————————————————————————————————— kodingwindow@kw:~$
Advertisement