#include<stdio.h>
#include<math.h>
#include<conio.h>
int fac(int f)
{ int t; if(f==0||f==1) t=1; else t=f*fac(f-1); return t; }
int main(void)
{ long n,final; long i,m; puts("Please input the number you want to calculate:"); scanf("%d",&n); final=fac(n); printf("The final number is %d\n",final); for(i=1;pow(10,i)<final;i++) { m=(int)pow(10,i); if(final%m==0) continue; else break; } printf("The final of number with %lld zeros",i-1); getch(); return 0; }