#include<stdio.h>
main(void)
{
int i=2,n=10;
float fac=1; /*¶¨ÒåfacΪµ¥¾«¶ÈÐÍ£¬²¢¸³³õÖµ1*/
if(n==0||n==1)
{
printf("facorial is 1
");
return 0;
}
while(i<=n)
{
fac=fac*i;
i++;
}
printf("facorial of %d is :%.f
",n,fac);
}