#include<stdio.h>
#include<conio.h>
void main()
{
int n,f=1;
clrscr();
printf("enter any number=");
scanf("%d",&n);
do
{
f=f*n;
n--;
}
while(n>0);
printf("factorial number is=%d",f);
getch();
}
Courtesy: Ashish Garg
Patiala, India
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