#include #includedouble fun(int n);int main (){printf("Input n: "); int n; scanf("%d",&n); double S = fun(n); printf("%d!=%.2lf",n,S);}double fun(int n){ int i=1; double fac=1;for(i=1;i<=n;i++) { fac*=i; } return fac;}