/*---------FACTORIAL OF A NUMBER--------------*/
#include<stdio.h>main()
{
unsigned int fact=1,i,n;
printf("\nEnter the number:");
scanf("%d",&n);
//a loop starting from 1 to n
for(i=1;i<=n;i++)
//fact=fact*i;
fact*=i;
printf("\n%d!=%d\n",n,fact);
}
/*----------------by NillVP--------------*/
u r great person....
ReplyDelete