Explanation:
There are various basic computer programming languages and one of them is the C language, the base of many computer lanuages.
The code of finding factorial is written below;
CODE
#include<stdio.h>
int main (void)
{
int i,
int factorial =1,
int input;
printf("Enter a number for finding its factorial: ");
scanf("%d",&input);
if (input == 0)
factorial = 0
eles
for ( i =1; I < = input ;i++)
factorial = factorial*i;
printf("Factorial of given %d is: %d",input,factorial);
return 0;
}