#include<stdio.h>
int main(){
int i=1,f=1,num;
printf("\nEnter a number:");
scanf("%d",&num);
while(i<=num){
f=f*i;
i++;
}
printf("\nFactorial of %d is:%d",num,f);
return 0;
}
Free C programs with output, C++ (C plus plus), programs c programming language, object oriented programming, c programs codes, c program shortcuts, history of c programming language, c programming compilers