C program to find the factorial of a given number
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 Please enter a number less than 16 ——————————————————————————————————————————— kodingwindow@kw:~$
What Next?
C program to find the factorial of a given number using recursion
C program to print the current date and time
C Pointers
Advertisement